projects
/
packages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[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
+++ b/
net/autossh/files/autossh.hotplug
@@ -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
+ }
+
+}