openwrt-packages/net/autossh/files/autossh.hotplug

15 lines
203 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
}
}