[package] add autossh hotplug script, remove duplicate restart init script function...
[packages.git] / net / autossh / files / autossh.hotplug
diff --git a/net/autossh/files/autossh.hotplug b/net/autossh/files/autossh.hotplug
new file mode 100644 (file)
index 0000000..4f695f4
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Copyright (C) 2007 OpenWrt.org
+
+/etc/init.d/autossh enabled && {
+
+       [ "$ACTION" = "ifup" ] && {
+               /etc/init.d/autossh start
+       }
+
+       [ "$ACTION" = "ifdown" ] && {
+               /etc/init.d/autossh stop
+       }
+       
+}