- cat >>/etc/rc.d/init.d/powernowd << EOF
- #!/bin/sh
- . /etc/sysconfig/rc
- . ${rc_functions}
- case "${1}" in
- start)
- boot_mesg "Starting powernowd"
- loadproc /sbin/powernowd
- ;;
- status)
- boot_mesg "Starting powernowd"
- statusproc /sbin/powernowd
- ;;
- stop)
- boot_mesg "Starting powernowd"
- killproc /sbin/powernowd
- ;;
- *)
- echo "Usage: ${0} {start|status|stop}"
- exit 1
- ;;
- esac
- EOF
- chmod 754 /etc/rc.d/init.d/powernowd
- ln -s ../init.d/powernowd /etc/rc.d/rcsysinit.d/S45powernowd
- ln -s ../init.d/powernowd /etc/rc.d/rc0.d/K45powernowd
- ln -s ../init.d/powernowd /etc/rc.d/rc6.d/K45powernowd
Raw Paste