zax - customs - reconnect script
[anomen-kernel-config.git] / zax / customs / usr / local / bin / reconnect
blobc367d8d7ec87b6611dd2363df510e775ffbae416
1 #!/bin/sh
3 sudo /etc/init.d/cntlm stop
6 for SVC in net.eth0 net.eth1
7 do
8 echo RESTART $SVC ...
9 sudo /etc/init.d/$SVC restart
10 done
12 for SVC in apache2 sshd
14 echo START $SVC ...
15 sudo /etc/init.d/$SVC start
16 done
18 pkill -9 sshfs
19 test -x $HOME/sshfs/umount.sh && $HOME/sshfs/umount.sh
20 rm -f $HOME/.ssh/mastersock*
22 sudo /etc/local.d/update_ip.start
23 sudo /etc/local.d/restart_proxy.start