Remélem tudtok segíteni. Adott egy LCD kijelző, amit az LCDproc nevű programmal működtetek. A fő gondom, hogy hiába van az init.d könyvtárban az indításhoz szükséges LCDd script, mégis mindíg kézzel kell indítanom minden egyes bootolás után.
Elvileg az itt található readme szerint ez így működik:
„As Puppy just runs the minimum required services, not requiring any user
intervention, Puppy does not have any services management.
At bootup, the /etc/rc.d/rc.local0 script will run all scripts found in
/etc/init.d/, with the commandline parameter ‘start’.
At shutdown, the /etc/rc.d/rc.shutdown script will run all scripts found in
/etc/init.d/, with the commandline parameter ‘stop’.”
Igen ám de csak akkor indul el az LCDd ha start paraméter nélkül indítom, különben hibaüzenettel elhasal. Nem kell neki a start paraméter:
„Non-option arguments on the command line. Critical error while processing settings, abort.”
Ki lehet ezt védeni?
itt a script:
#!/bin/sh
#
# chkconfig: 345 98 05
# description: It’s cute
# processname: LCDd
# configfile: /etc/lcdproc.d/LCDd.conf
# Source function library.
. /etc/rc.d/init.d/functions
LCDD_CONFIG=/etc/lcdproc/LCDd.conf
LCDPROC_CONFIG=`cat /etc/lcdproc/lcdproc.conf`
RETVAL=0
# See how we were called.
case „$1” in
start)
gprintf „Starting LCDd: „
daemon LCDd -c $LCDD_CONFIG
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/LCDd
nice -n 10 lcdproc $LCDPROC_CONFIG &
echo
;;
stop)
gprintf „Stopping LCDd: „
killall lcdproc
killproc LCDd
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/LCDd
echo
;;
status)
status LCDd
status lcdproc
RETVAL=$?
;;
restart)
$0 stop
$0 start
;;
*)
gprintf „Usage: LCDd {start|stop|status|restart}n”
exit 1
esac
exit $RETVAL
legutóbbi hsz