[package] add autossh hotplug script, remove duplicate restart init script function...
[packages.git] / net / autossh / files / autossh.hotplug
1 #!/bin/sh
2 # Copyright (C) 2007 OpenWrt.org
3
4 /etc/init.d/autossh enabled && {
5
6         [ "$ACTION" = "ifup" ] && {
7                 /etc/init.d/autossh start
8         }
9
10         [ "$ACTION" = "ifdown" ] && {
11                 /etc/init.d/autossh stop
12         }
13         
14 }