diff options
Diffstat (limited to 'display/splashy/init.d/splashy1')
-rwxr-xr-x | display/splashy/init.d/splashy1 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/display/splashy/init.d/splashy1 b/display/splashy/init.d/splashy1 new file mode 100755 index 0000000000..dce8159b09 --- /dev/null +++ b/display/splashy/init.d/splashy1 @@ -0,0 +1,46 @@ +#!/bin/sh + +PROGRAM=/bin/false +RUNLEVEL=1 +NEEDS="+local_fs" + +. /etc/init.d/smgl_init +. /etc/sysconfig/init + +MAX_LEVEL=$DEFAULT_RUNLEVEL + +case "$MAX_LEVEL" in + 1) + SPLASHY_PROGRESS=100 + ;; + 2) + SPLASHY_PROGRESS=50 + ;; + 3) + SPLASHY_PROGRESS=33 + ;; + 4) + SPLASHY_PROGRESS=25 + ;; + 5) + SPLASHY_PROGRESS=20 + ;; + *) + echo "Unknown default runlevel" + exit 1 +esac + +start() +{ + /usr/sbin/splashy_update "progress $SPLASHY_PROGRESS" +} + +stop() +{ + true +} + +restart() +{ + true +} |