#!/bin/sh DAEMON=onlinechanged . /etc/init.d/modlibrc case $1 in ""|load) modreg file onlinechanged conf 'Onlinechanged' 0 "onlinechanged" modreg daemon --hide onlinechanged echo -n 'Setting up onlinechanged scripting ... ' [ ! -f /tmp/flash/$DAEMON-cgi ] && cp /etc/default.$DAEMON/$DAEMON-cgi /tmp/flash/ sh /tmp/flash/$DAEMON-cgi start echo 'done.' ;; unload) modunreg file onlinechanged modunreg daemon onlinechanged ;; start) ;; stop) ;; restart) ;; status) ;; *) echo "Usage: $0 [load|unload|start|stop|restart|status]" 1>&2 exit 1 ;; esac exit 0