5
PATH=/sbin:/bin:/usr/sbin:/usr/bin
8
test -x /usr/bin/ubiquity-dm || exit 0
10
for x in $(cat /proc/cmdline); do
15
[ "$1" = force-start ] || exit 0
20
if [ -r /etc/environment ]; then
21
if LANG=$(pam_getenv -l LANG); then
24
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
29
. /lib/lsb/init-functions
33
log_begin_msg "Starting Ubiquity..."
34
# if usplash is running, make sure to stop it now, yes "start" kills it.
35
if pidof usplash > /dev/null; then
37
orig_console="$(fgconsole)"
38
DO_NOT_SWITCH_VT=yes /etc/init.d/usplash start
39
# We've just shut down usplash, so don't log
40
# success as it will look weird on the console.
44
log_end_msg=log_end_msg
46
# Run in the foreground.
47
if ubiquity-dm vt7 :0 /usr/bin/ubiquity; then
53
if $usplash && [ "$orig_console" != serial ]; then
54
# Wait a short while for the active console to
55
# change, to try to avoid visible console noise from
58
while [ "$(fgconsole)" = "$orig_console" ]; do
60
if [ "$i" -gt 5 ]; then
67
stop|restart|force-reload)
71
echo "Usage: $N {start|force-start|stop|restart|force-reload}" >&2