14 lines
255 B
Bash
14 lines
255 B
Bash
uid=`id -u`
|
|
|
|
if [ "$uid" != "0" ]; then
|
|
echo "need to be root"
|
|
exit -1
|
|
fi
|
|
|
|
mkdir -p /usr/local/punchnet
|
|
cp punchnet /usr/local/punchnet
|
|
cp libtuntap.so /usr/lib/
|
|
cp punchnet.service /etc/systemd/system
|
|
systemctl enable punchnet
|
|
systemctl start punchnet
|