Package: qcontrol Version: 0.4.2-2lenny2 Severity: wishlist Heyho!
Since the QNAP don't have an easily accessible console (ok, cables are
available. But not included, unfortunately), I'd appreciate some small help
in debugging: indicate the transition from the initrd to the on-disk rootfs.
The idea is of course that that way it'd be easier to find if it's a case of
root fs not found or perhaps just a case of 'mysql hangs at boot' or whatever.
I tried the patch below and adding qcontrol as rcS.d/S00qcontrol, but
apparently I made some mistake (or is /var/run not accessible yet?)
Since my original issue is now solved I probably won't follow up in the short
term, but I still think the idea is not that bad.
cheers
-- vbi
[the obvious extensions are:
* cycling through all LED / fanspeed combinations and hook this into the boot
splash calls of the init system.
* and, of course, get that display working ;-)
]
--- qcontrol.orig 2009-12-02 22:04:22.000000000 +0100
+++ qcontrol 2009-12-02 22:10:29.000000000 +0100
@@ -89,16 +89,26 @@
"QNAP TS-409" | "QNAP TS-41x")
test_event_dev || exit 0
if pid=$(qcontrol_start); then
- log_action_msg "System boot completed"
- # Returns 1 even on success
- qcontrol statusled greenon || true
- if [ "$SOUND_BUZZER" != no ]; then
- qcontrol buzzer short || true
- fi
+ if [ "$runlevel" == 'S' ]; then
+ log_action_msg "Root fileysstem found"
+ # Returns 1 even on success
+ qcontrol statusled green2hz || true
- # Kill the control process
- kill -TERM $pid
- rm -f $SOCKET
+ # Kill the control process
+ kill -TERM $pid
+ rm -f $SOCKET
+ else
+ log_action_msg "System boot completed"
+ # Returns 1 even on success
+ qcontrol statusled greenon || true
+ if [ "$SOUND_BUZZER" != no ]; then
+ qcontrol buzzer short || true
+ fi
+
+ # Kill the control process
+ kill -TERM $pid
+ rm -f $SOCKET
+ fi
fi
;;
*)
--
All Hail Discordia!
signature.asc
Description: This is a digitally signed message part.

