# 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: Fre Aug 15 23:06:21 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
else
# check module dependencies
cpufreq_check() {
- if [ -e /lib64 ] ; then
- [ -e /lib/modules/${KERNEL}/kernel/arch/x86_64/kernel/cpufreq ] || return 1
- else
- [ -e /lib/modules/${KERNEL}/kernel/arch/i386/kernel/cpu/cpufreq -o ! -e /lib/modules/${KERNEL}/kernel/drivers/cpufreq ] || return 1
+ if ! [ -e /lib/modules/${KERNEL}/kernel/arch/x86/kernel/cpu/cpufreq ] ; then
+ if [ -e /lib64 ] ; then
+ [ -e /lib/modules/${KERNEL}/kernel/arch/x86_64/kernel/cpufreq ] || return 1
+ else
+ [ -e /lib/modules/${KERNEL}/kernel/arch/i386/kernel/cpu/cpufreq -o ! -e /lib/modules/${KERNEL}/kernel/drivers/cpufreq ] || return 1
+ fi
fi
}
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
}
# }}}
ewarn "Skipping running automount of device(s) labeled GRMLCFG as requested." ; eend 0
else
if [ -z "$INSTALLED" ] ; then
- einfo "Searching for device(s) labeled with GRMLCFG." ; eend 0
+ einfo "Searching for device(s) labeled with GRMLCFG. (Disable this via boot option: noautoconfig)" ; eend 0
eindent
[ -d /mnt/grml ] || mkdir /mnt/grml
umount /mnt/grml 1>>$DEBUG 2>&1 # make sure it is not mounted
# We do need the following fix so floppy disk is available to blkid in any case :-/
if [ -r /dev/fd0 ] ; then
- einfo "Floppy device detected. Trying to access floppy disk. (Disable this via boot option: noautoconfig)"
+ einfo "Floppy device detected. Trying to access floppy disk."
# dd if=/dev/fd0 of=/dev/null bs=512 count=1 1>>$DEBUG 2>&1
if timeout 4 dd if=/dev/fd0 of=/dev/null bs=512 count=1 1>>$DEBUG 2>&1 ; then
blkid /dev/fd0 1>>$DEBUG 2>&1
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
}
# }}}