2 # Copyright (C) 2006 OpenWrt.org
4 .
$IPKG_INSTROOT/etc
/functions.sh
34 name
="$(basename "${initscript}")"
35 rm -f "$IPKG_INSTROOT/etc/rc.d/S??$name"
39 name
="$(basename "${initscript}")"
41 ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
50 Syntax: $initscript [command]
53 start Start the service
55 restart Restart the service
56 reload Reload configuration files (or restart if that fails)
57 enable Enable service autostart
58 disable Disable service autostart
69 for cmd
in $EXTRA_COMMANDS; do
72 eval "case \"\$action\" in
75 reload) reload || restart;;