# Authors: grml-team (grml.org), (c) Klaus Knopper <knopper@knopper.net>, (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Sam Mai 17 22:15:54 CEST 2008 [mika]
+# Latest change: Mon Jun 09 17:05:42 CEST 2008 [mika]
################################################################################
# {{{ path, variables, signals, umask, zsh
if [ -n "$BOOTDEBUG" ]; then
einfo "Starting intermediate shell stage $stage as requested by \"debug\" option."
if [ grep -q "debug=noscreen" "$CMDLINE" ] ; then
+ einfo "Notice that the shell does not provide job handling: ctrl-z, bg and fg won't work!"
+ einfo "Just exit the shell to continue boot process..."
/bin/zsh
else
eindent
if checkbootparam "nogpm"; then
ewarn "Not starting GPM as requested on boot commandline." ; eend 0
else
- einfo "Starting gpm in background."
-# /etc/init.d/gpm start 1>>$DEBUG &
- ( while [ ! -e /dev/psaux ]; do sleep 5; done; /etc/init.d/gpm start 1>>$DEBUG ) &
- eend 0
+ if ! [ -r /dev/input/mice ] ; then
+ eerror "No mouse found - not starting GPM." ; eend 1
+ else
+ einfo "Starting gpm in background."
+ /etc/init.d/gpm start 1>>$DEBUG &
+ # ( while [ ! -e /dev/psaux ]; do sleep 5; done; /etc/init.d/gpm start 1>>$DEBUG ) &
+ eend 0
+ fi
fi
}
# }}}
for i in $(echo $MY_PATH | sed 's/:/\n/g') ; do
if ! [ -d "$i" ] ; then
einfo "Creating directory $i"
- mkdir -d "$i" ; eend $?
+ mkdir -p "$i" ; eend $?
fi
done
+ grep -q "${MY_PATH}" /etc/grml/my_path || echo "${MY_PATH}" >> /etc/grml/my_path ; eend $?
eoutdent
- echo "$MY_PATH" >> /etc/grml/my_path ; eend $?
fi
}
# }}}