-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·33 lines (25 loc) · 930 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#----------------------------------------------------------------------------------------
# brcm-BCM4350-ctl
# Version: 0.4.2
#
# WebSite:
# https://lab.mfwlab.com/lab/brcm-BCM4350-ctl/
#
# Copyright © 2020 - Pablo Meniño <[email protected]>
#----------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------
# Install brcm-BCM4350-ctl
if [ "$EUID" -ne 0 ]; then
echo "This script must be run as root!!!"
exit 1
fi
cp broadcomctl.sh /usr/local/bin/
cp broadcomctl.service /etc/systemd/system/
chmod +x /usr/local/bin/broadcomctl.sh
systemctl daemon-reload
systemctl enable broadcomctl
#----------------------------------------------------------------------------------------
# Exit
exit 0
#----------------------------------------------------------------------------------------