Skip to content
Snippets Groups Projects
Commit 770daf9b authored by wonko's avatar wonko
Browse files

actual reset/reboot commandswq

parent 53cbe780
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ if [[ "$NET_IS" == "UP" ]]; then ...@@ -27,7 +27,7 @@ if [[ "$NET_IS" == "UP" ]]; then
source $VPN_FILE source $VPN_FILE
case $VPN in case $VPN in
1 ) vpn 2 ;; 1 ) vpn 2 ;;
2 ) logger -t watchcat "restart vpn" ;; 2 ) /etc/init.d/tinc restart& ;;
* ) vpn 1 ;; * ) vpn 1 ;;
esac esac
fi fi
...@@ -36,7 +36,7 @@ else ...@@ -36,7 +36,7 @@ else
source $NET_FILE source $NET_FILE
case $NET in case $NET in
1 ) net 2 ;; 1 ) net 2 ;;
2 ) logger -t watchcat "reboot" ;; 2 ) /sbin/reboot& ;;
* ) net 1 ;; * ) net 1 ;;
esac esac
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment