autossh.hotplug 204 B

1234567891011121314
  1. #!/bin/sh
  2. # Copyright (C) 2007 OpenWrt.org
  3. /etc/init.d/autossh enabled && {
  4. [ "$ACTION" = "ifup" ] && {
  5. /etc/init.d/autossh start
  6. }
  7. [ "$ACTION" = "ifdown" ] && {
  8. /etc/init.d/autossh stop
  9. }
  10. }