packages/net/autossh/files/autossh.hotplug
florian ff1d7d7b71 [package] add autossh hotplug script, remove duplicate restart init script function (#4860)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-25 22:06:36 +00:00

15 lines
204 B
Bash

#!/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
}
}