Thread
:
Enable/Disable ssh server depending on wifi connection
View Single Post
aligatro
2010-11-04 , 16:13
Posts: 490 | Thanked: 191 times | Joined on May 2010
#
2
Should work. Try it
put
into /etc/network/if-down.d
#!/bin/sh
/etc/init.d/sshd stop
into /etc/network/if-up.d
#!/bin/sh
/etc/init.d/sshd start
[added]remove sudo
[added] ok it doesn't work. :S
Last edited by aligatro; 2010-11-04 at
17:42
.
Quote & Reply
|
The Following User Says Thank You to aligatro For This Useful Post:
pelago
aligatro
View Public Profile
Send a private message to aligatro
Find all posts by aligatro