3 # /etc/rc.d/rc.sysinit - run once at boot time
6 # Taken in part from Miquel van Smoorenburg's bcheckrc.
7 # Changes: Arkadiusz Mi¶kiewicz <misiek@pld-linux.org>
11 PATH=/bin:/sbin:/usr/bin:/usr/sbin
15 . /etc/rc.d/init.d/functions
17 # we need /proc mounted before everything
18 mount -n -o gid=17 -t proc /proc /proc
20 # sysfs is also needed before any other things (under kernel > 2.5)
21 if grep -q sysfs /proc/filesystems ; then
22 run_cmd "Mounting sysfs filesystem" mount -n -o gid=17 -t sysfs sysfs /sys
25 # Choose Hardware profile
26 rm -f /var/run/hwprofile 2> /dev/null
27 if [ -f /etc/sysconfig/hwprof ]; then
28 . /etc/sysconfig/hwprof
29 if is_yes "${HWPROFILES}" && [ -x /sbin/hwprofile -a -d /etc/sysconfig/hwprofiles/data ]; then
30 mount -n / -o rw,remount
32 mount -n / -o ro,remount
37 if [ -r /etc/sysconfig/i18n ]; then
39 [ -n "$LANG" ] && export LANG || unset LANG
40 [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
41 [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
42 [ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
43 [ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
44 [ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
45 [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME
46 [ -n "$LC_ALL" ] && export LC_ALL || unset LC_ALL
47 [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
48 [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
51 # Read network config data
52 if [ -r /etc/sysconfig/network ]; then
53 . /etc/sysconfig/network
59 # Read system config data
60 if [ -r /etc/sysconfig/system ]; then
61 . /etc/sysconfig/system
63 RUN_SULOGIN_ON_ERR=yes
74 # Print welcome message
75 nls "\t\t\t%sPowered by %sPLD Linux Distribution%s" "$(termput setaf 6)" "$(termput setaf 2)" "$(termput setaf 7)"
76 if is_yes "$PROMPT"; then
77 nls -n "\t\t Press %sI%s to enter interactive startup" "$(termput setaf 1)" "$(termput setaf 7)"
82 # Set console loglevel
83 if [ -n "$CONSOLE_LOGLEVEL" ]; then
84 /bin/dmesg -n $CONSOLE_LOGLEVEL
87 # /dev must be also mounted before everything but only if we want use them ;-)
88 if is_yes "$MOUNT_DEVFS"; then
89 run_cmd "Mounting Device Filesystem" mount -n -t devfs /dev /dev
93 if [ -e /dev/.devfsd -a -x /sbin/devfsd ]; then
94 run_cmd "Starting Device Filesystem Daemon" /sbin/devfsd /dev
97 # Configure Linux kernel (initial configuration, some required modules still
99 /sbin/sysctl -p /etc/sysctl.conf > /dev/null 2>&1
101 # Set the system clock.
106 if [ -f /etc/sysconfig/clock ]; then
107 . /etc/sysconfig/clock
109 # convert old style clock config to new values
110 if [ "${CLOCKMODE}" = "GMT" ]; then
112 elif [ "${CLOCKMODE}" = "ARC" ]; then
117 if grep "system serial" /proc/cpuinfo | grep -q MILO ; then
122 CLOCKFLAGS="--hctosys"
124 if is_yes "$UTC" ; then
125 CLOCKFLAGS="$CLOCKFLAGS --utc"
126 CLOCKDEF="$CLOCKDEF (utc)"
128 CLOCKFLAGS="$CLOCKFLAGS --localtime"
129 CLOCKDEF="$CLOCKDEF (local)"
132 if is_yes "$ARC" ; then
133 CLOCKFLAGS="$CLOCKFLAGS -A"
134 CLOCKDEF="$CLOCKDEF (arc)"
137 if is_yes "$SRM" ; then
138 CLOCKFLAGS="$CLOCKFLAGS -S"
139 CLOCKDEF="$CLOCKDEF (srm)"
142 # Check if timezone definition is available
143 if [ -e /etc/localtime ] ; then
144 if run_cmd "$(nls 'Setting clock')$CLOCKDEF" /sbin/hwclock $CLOCKFLAGS; then
145 show "$(nls 'Today`s date:') $(LC_CTYPE=C date)"; ok
148 TIME_SETUP_DELAYED=yes
152 run_cmd "Activating swap partitions" swapon -a
155 run_cmd "$(nls 'Host:') ${HOSTNAME}" hostname ${HOSTNAME}
157 # Set the NIS domain name
158 if [ -n "$NISDOMAIN" ]; then
159 run_cmd "$(nls 'NIS Domain:') ${NISDOMAIN}" domainname $NISDOMAIN
164 # Setup hdparm thing (if exists and is needed)
165 if ! grep -iq nohdparm /proc/cmdline; then
166 [ -x /etc/rc.d/rc.hdparm ] && /etc/rc.d/rc.hdparm
169 if [ -f /fastboot ] || grep -iq "fastboot" /proc/cmdline 2> /dev/null ; then
175 if [ -f /fsckoptions ]; then
176 fsckoptions=$(cat /fsckoptions)
181 if [ -f /forcefsck ]; then
182 fsckoptions="-f $fsckoptions"
186 _ROOTFS_TYPE=$(grep " / " /proc/mounts | awk '{ print $3 }')
188 if [ -z "$fastboot" -a "$_ROOTFS_TYPE" != "nfs" -a "$_ROOTFS_TYPE" != "romfs" ]; then
189 show "Checking root filesystem"; started
190 initlog -c "fsck -C -T -a $fsckoptions /"
194 # A return of 4 or higher means there were serious problems.
195 if [ $rc -gt 3 ]; then
196 # don't use '\n' in nls macro !
199 nls "*** An error occurred during the file system check."
200 nls "*** Dropping you to a shell; the system will reboot"
201 nls "*** when you leave the shell."
204 PS1="$(nls '(Repair filesystem)# ')"; export PS1
205 if is_yes "$RUN_SULOGIN_ON_ERR"; then
211 run_cmd "Unmounting file systems" umount -a
212 mount -n -o remount,ro /
213 run_cmd "Automatic reboot in progress" reboot
214 # A return of 2 or 3 means that filesystem was repaired but we need
216 elif [ "$rc" = "2" -o "$rc" = "3" ]; then
218 nls "*** Filesystem was repaired but system needs to be"
219 nls "*** rebooted before mounting it."
220 nls "*** REBOOTING ***"
223 run_cmd "Unmounting file systems" umount -a
224 mount -n -o remount,ro /
225 run_cmd "Automatic reboot in progress" reboot
226 elif [ "$rc" = "1" ]; then
231 # Check for arguments
232 if grep -iq nopnp /proc/cmdline; then
238 # set up pnp and kernel pnp
239 if [ -n "$PNP" ]; then
240 if is_yes "$RUN_USERPNP" && [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
241 run_cmd "Setting up ISA PNP devices (userspace pnp)" /sbin/isapnp /etc/isapnp/isapnp.conf
243 if is_yes "$RUN_KERNELPNP"; then
244 /sbin/modprobe -k isa-pnp 2> /dev/null
245 if [ -e /proc/isapnp -a -f /etc/isapnp/isapnp-kernel.conf ]; then
246 show "Setting up ISA PNP devices (kernelspace pnp)"; busy
247 grep -v "^#" /etc/isapnp/isapnp-kernel.conf > /proc/isapnp && (deltext; ok) || (deltext; fail)
252 # Remount the root filesystem read-write
253 run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw /
255 # Update quotas if fsck was run on /
256 if [ "$_RUN_QUOTACHECK" = "1" -a -x /sbin/quotacheck ]; then
257 run_cmd "Checking root filesystem quotas" /sbin/quotacheck -vug /
263 # Remove stale backups
264 rm -f /etc/mtab~ /etc/mtab~~
266 # Enter root, /proc, /sys and devfs into mtab.
269 if grep -q sysfs /proc/filesystems ; then
270 mount -f -t sysfs sysfs /sys
272 if is_yes "$MOUNT_DEVFS"; then
273 mount -f -t devfs devfs /dev
276 # Remove /etc/nologin when starting system
277 [ -f /etc/nologin.boot ] && rm -f /etc/nologin /etc/nologin.boot
279 if is_yes "$DELAY_LOGIN" && [ ! -f /etc/nologin ]; then
280 show "Enabling Delay Login"; busy
282 nls "System bootup in progress - please wait" >> /etc/nologin
284 chmod 644 /etc/nologin
285 cp -fp /etc/nologin /etc/nologin.boot
289 # The root filesystem is now read-write, so we can now log via
290 # syslog() directly...
291 if [ -n "$IN_INITLOG" ]; then
295 if [ ! -f /proc/modules ]; then
297 elif ! grep -iq nomodules /proc/cmdline; then
303 # Adjust symlinks as necessary in /boot to keep system services from
304 # spewing messages about mismatched System maps and so on.
305 if is_yes "$SET_SLINKS"; then
306 if [ -L /boot/System.map -a -r /boot/System.map-`uname -r` ] ; then
307 ln -s -f System.map-`uname -r` /boot/System.map
309 if [ ! -e /boot/System.map -a -r /boot/System.map-`uname -r` ] ; then
310 ln -s -f System.map-`uname -r` /boot/System.map
314 # Run depmod if RUN_DEPMOD != "no" and:
315 # a) user requested or RUN_DEPMOD="";
316 # b) modules.dep is missing
317 # c) modules.dep is older than /etc/modules.conf or /lib/modules/`uname -r`
318 if ! is_no "$RUN_DEPMOD" && [ -n "$USEMODULES" ]; then
319 if is_yes "$RUN_DEPMOD" || [ -z "$RUN_DEPMOD" ]; then
320 run_cmd "Finding module dependencies" depmod -a
321 elif [ "$RUN_DEPMOD" = "ifmissing" ]; then
322 run_cmd "Finding module dependencies" depmod -A
326 if [ -f /proc/sys/kernel/modprobe ]; then
327 if [ -n "$USEMODULES" ]; then
328 sysctl -w kernel.modprobe="/sbin/modprobe" >/dev/null 2>&1
329 sysctl -w kernel.hotplug="/sbin/hotplug" >/dev/null 2>&1
331 # We used to set this to NULL, but that causes
332 # 'failed to exec' messages"
333 sysctl -w kernel.modprobe="/bin/true" >/dev/null 2>&1
334 sysctl -w kernel.hotplug="/bin/true" >/dev/null 2>&1
338 # Initialize USB controller and HID devices
340 if ! grep -iq "nousb" /proc/cmdline 2>/dev/null && ! grep -q "usb" /proc/devices 2>/dev/null ; then
341 aliases=$(/sbin/modprobe -c | egrep -s "^alias[[:space:]]+usb-controller" | awk '{ print $3 }')
342 if [ -n "$aliases" -a "$aliases" != "off" ] ; then
343 /sbin/modprobe -k usbcore
344 if ! grep -qE "(usbdevfs|usbfs)" /etc/mtab && [ ! -f /proc/bus/usb/devices ]; then
345 run_cmd "Mounting USB filesystem" mount /proc/bus/usb
347 for alias in $aliases ; do
348 run_cmd "$(nls 'Initializing USB controller') ($alias)" /sbin/modprobe $alias
350 [ $? -eq 0 -a -n "$aliases" ] && usb=1
354 if ! grep -iq "nousb" /proc/cmdline 2>/dev/null && grep -q "usb" /proc/devices 2>/dev/null ; then
359 if [ $usb = "1" ]; then
360 mouseoutput=$(cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=02")
361 kbdoutput=$(cat /proc/bus/usb/devices 2>/dev/null|grep -E "^I.*Cls=03.*Prot=01")
362 needusbstorage=$(cat /proc/bus/usb/devices 2>/dev/null|grep -e "^I.*Cls=08")
363 if [ -n "$kbdoutput" ] || [ -n "$mouseoutput" ]; then
364 run_cmd "Initializing USB HID interface" modprobe hid 2> /dev/null
366 if [ -n "$kbdoutput" ]; then
367 run_cmd "Initializing USB keyboard" modprobe keybdev
369 if [ -n "$mouseoutput" ]; then
370 run_cmd "Initializing USB mouse" modprobe mousedev
374 # Load usb storage here, to match most other things
375 if [ -n "$needusbstorage" ]; then
376 modprobe usb-storage >/dev/null 2>&1
379 # Load sound modules if they need persistent DMA buffers
380 if grep -q "options sound dmabuf=1" /etc/modules.conf 2>/dev/null ; then
382 alias=$(/sbin/modprobe -c | egrep -s "^alias[[:space:]]+sound[[:space:]]+" | awk '{ print $3 }')
383 if [ -n "$alias" -a "$alias" != "off" ] ; then
384 run_cmd "$(nls 'Loading sound module') ($alias)" modprobe -s $alias
387 alias=$(/sbin/modprobe -c | egrep -s "^alias[[:space:]]+sound-slot-0[[:space:]]+" | awk '{ print $3 }')
388 if [ -n "$alias" -a "$alias" != "off" ] ; then
389 run_cmd "$(nls 'Loading sound module') ($alias)" modprobe -s $alias
395 if [ -x /etc/rc.d/rc.modules ]; then
399 # Find and activate volume groups:
401 if [ -x /sbin/evms_activate ]; then
402 # Linux 2.5 core module
403 modprobe -s -k evmscore > /dev/null 2>&1
404 # Linux 2.4 core modules
405 modprobe -s -k evms > /dev/null 2>&1
406 modprobe -s -k evms_passthru > /dev/null 2>&1
407 modprobe -s -k ldev_mgr > /dev/null 2>&1
408 modprobe -s -k dos_part > /dev/null 2>&1
409 is_yes "$EVMS_GUID_PTABLE" && modprobe -s -k gpt_part >/dev/null 2>&1
410 is_yes "$EVMS_LVM" && modprobe -s -k lvm_vge >/dev/null 2>&1
411 is_yes "$EVMS_AIX" && modprobe -s -k AIXlvm_vge >/dev/null 2>&1
412 is_yes "$EVMS_OS2" && modprobe -s -k os2lvm_vge >/dev/null 2>&1
413 run_cmd "Discovering EVMS volumes" /sbin/evms_activate
414 if is_yes "$EVMS_LVM" && is_yes "$EVMS_LVM_COMPAT_NODES" ; then
415 # Link nodes for compatibility with LVM
416 if [ "echo /dev/evms/lvm/*" != '/dev/evms/lvm/*' ] ; then
417 ln -s /dev/evms/lvm/* /dev/
422 if is_yes "$EVMS_LVM" || [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
423 modprobe -s -k lvm-mod >/dev/null 2>&1
424 # device mapper (2.5+ and patched 2.4)
425 modprobe -s -k dm-mod >/dev/null 2>&1
426 run_cmd "Scanning for LVM volume groups" /sbin/vgscan && \
427 run_cmd "Activating LVM volume groups" /sbin/vgchange -a y
431 if [ -x /sbin/mdadm -a -f /etc/mdadm.conf ] || [ -f /etc/raidtab ]; then
433 modprobe -s md >/dev/null 2>&1
434 if [ -f /proc/mdstat ]; then
438 if [ -x /sbin/mdadm -a -f /etc/mdadm.conf ]; then
439 if (grep -qE "^([[:blank:]]|)ARRAY[[:blank:]]" /etc/mdadm.conf); then
440 run_cmd "Starting up RAID devices" /sbin/mdadm --assemble --scan
442 [ "$rc" -eq 0 ] && goraidtab=0
446 if [ -f /etc/raidtab -a "$goraidtab" -eq 1 ]; then
448 for i in $(grep -v "^#" /etc/raidtab | grep "raiddev" | awk '{print $2}') ; do
449 RAIDDEV=$(basename $i)
450 RAIDSTAT=$(grep "^$RAIDDEV : active" /proc/mdstat)
451 show "Starting up RAID device %s" $RAIDDEV
453 if [ -z "$RAIDSTAT" ]; then
454 # Try raidstart first...if that fails then
455 # fall back to raid0run and if that fails too
456 # fall back to raidadd, raidrun.
458 if [ -x /sbin/raidstart ]; then
462 if [ $RESULT -gt 0 -a -x /sbin/raid0run ]; then
466 if [ $RESULT -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]; then
471 if [ $RESULT -gt 0 ]; then
483 # A non-zero return means there were problems
484 if [ $rc -gt 0 ]; then
485 show "Starting up RAID devices"; fail
488 nls "*** An error occurred during the RAID startup."
489 nls "*** Dropping you to a shell; the system will reboot"
490 nls "*** when you leave the shell."
493 PS1="$(nls '(RAID Repair)# ')"; export PS1
494 if is_yes "$RUN_SULOGIN_ON_ERR"; then
500 run_cmd "Unmounting file systems" umount -a
501 run_cmd "Remounting root filesystem in ro mode" mount -n -o remount,ro /
502 run_cmd "Automatic reboot in progress" reboot
504 show "Starting up RAID devices"; ok
510 if [ -z "$fastboot" ] && ! grep -q nofsck /proc/cmdline; then
511 show "Checking filesystems"; started
512 initlog -c "fsck -C -T -R -A -a $fsckoptions"
516 # A return of 2 or higher means there were serious problems
517 if [ $rc -gt 1 ]; then
520 nls "*** An error occurred during the file system check."
521 nls "*** Dropping you to a shell; the system will reboot"
522 nls "*** when you leave the shell."
525 PS1="$(nls '(Repair filesystem)# ')"; export PS1
526 if is_yes "$RUN_SULOGIN_ON_ERR"; then
532 run_cmd "Unmounting file systems" umount -a
533 run_cmd "Remounting root filesystem in ro mode" mount -n -o remount,ro /
534 run_cmd "Automatic reboot in progress" reboot
535 elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
540 # Mount all other filesystems (except for NFS and /proc, which is already
541 # mounted). Contrary to standard usage,
542 # filesystems are NOT unmounted in single user mode.
544 run_cmd "Mounting local filesystems" mount -a -t nonfs,smbfs,ncpfs,proc
546 # Now do some workaround - encrypted filesystems couldn't have been fsck-ed
547 # before mount - that's where the password is entered.
548 # mount is buggy - when remounting loopback filesystem, loop=XXX
549 # option is removed from /etc/mtab
550 if grep "^[^#].*encryption=" /etc/fstab | grep -v -q "noauto"; then
551 show "Checking encrypted filesystems"; started
553 grep "encryption=" /etc/fstab | grep -v 'noauto' | grep -w 'ro' |\
554 while read FILE DIR TYPE OPTS TMP1; do
555 LOOP="`cat /proc/mounts | awk '$2 == "'"$DIR"'" { print $1 }'`"
558 grep "encryption=" /etc/fstab | grep -vw 'ro\|noauto' |\
559 while read FILE DIR TYPE OPTS TMP1; do
560 LOOP="`cat /proc/mounts | awk '$2 == "'"$DIR"'" { print $1 }'`"
561 LOOPLIST="$LOOPLIST $LOOP"
562 NEWOPTS="remount,`echo "$OPTS" | sed 's#loop\(=[^,]*\)\?#loop='"$LOOP"'#'`,ro"
564 mount "$DIR" -o "$NEWOPTS"
568 initlog -c "fsck -T -C -a $fsckoptions $LOOPLIST"
571 # A return of 2 or higher means there were serious problems.
572 if [ $rc -gt 1 ]; then
574 nls "*** An error occurred during the file system check."
575 nls "*** Dropping you to a shell; the system will reboot"
576 nls "*** when you leave the shell."
579 PS1="`nls '(Repair filesystem)# '`"; export PS1
580 if is_yes "$RUN_SULOGIN_ON_ERR"; then
586 run_cmd "Unmounting file systems" umount -a
587 run_cmd "Remounting root filesystem in ro mode" mount -n -o remount,ro /
588 run_cmd "Automatic reboot in progress" reboot
589 elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
593 show "Remounting encrypted filesystems back in rw mode"; busy
594 grep "encryption=" /etc/fstab | grep -vw 'ro\|noauto' |\
595 while read FILE DIR TYPE OPTS TMP1; do
596 LOOP="`cat /proc/mounts | awk '$2 == "'"$DIR"'" { print $1 }'`"
597 NEWOPTS="remount,`echo "$OPTS" | sed 's#loop\(=[^,]*\)\?#loop='"$LOOP"'#'`,rw"
598 mount "$DIR" -o "$NEWOPTS"
603 if [ "$_RUN_QUOTACHECK" = "1" -a -x /sbin/quotacheck ]; then
604 run_cmd "Checking filesystem quotas" /sbin/quotacheck -v -u -g -R -a
608 if [ -x /sbin/quotaon ]; then
609 run_cmd "Turning on quotas for local filesystems" /sbin/quotaon -a
612 # Turn on process accounting
613 if [ -x /etc/rc.d/rc.acct ]; then
614 /etc.rc.d/rc.acct start
617 # Set the clock if timezone definition wasn't available (eg. /usr not mounted)
618 if is_yes "$TIME_SETUP_DELAYED"; then
619 if run_cmd "$(nls 'Setting clock')$CLOCKDEF" /sbin/hwclock $CLOCKFLAGS; then
620 show "$(nls 'Today`s date:') $(LC_CTYPE=C date)"; ok
624 # Initialize the serial ports
625 if [ -f /etc/rc.d/rc.serial ]; then
626 . /etc/rc.d/rc.serial
629 if [ -f /proc/sys/kernel/panic -a "$PANIC_REBOOT_TIME" -gt "0" ]; then
630 show 'Setting %s seconds for kernel reboot after panic' "$PANIC_REBOOT_TIME"; busy
631 if (sysctl -w kernel.panic=$PANIC_REBOOT_TIME >/dev/null 2>&1); then ok; else fail; fi
634 # ... and here finish configuring parameters
635 run_cmd "Configuring kernel parameters" /sbin/sysctl -p /etc/sysctl.conf
638 rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff
641 # I'd use find, but /usr may not be mounted.
642 for afile in /var/lock/* /var/run/*; do
643 if [ -d "$afile" ]; then
644 bafile=$(basename $afile)
645 [ "$bafile" != "news" -a "$bafile" != "sudo" -a "$bafile" != "mon" ] && rm -rf $afile/*
647 rm -f $afile 2> /dev/null
651 # Delete stale pid files
652 rm -f /var/spool/postoffice/.pid.*
656 if ! is_no "$NEED_XFILES" ; then
659 chown root.utmp /var/run/utmpx /var/log/wtmpx
660 chmod 0664 /var/run/utmpx /var/log/wtmpx
664 chown root.utmp /var/run/utmp /var/log/wtmp
665 chmod 0664 /var/run/utmp /var/log/wtmp
669 if is_yes "$CLEAN_TMP"; then
670 rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
673 # Right, now turn on swap in case we swap to files
674 swapon -a >/dev/null 2>&1
675 run_cmd "Enabling swap space" /bin/true
677 # If a SCSI tape has been detected, load the st module unconditionally
678 # since many SCSI tapes don't deal well with st being loaded and unloaded
679 if [ -f /proc/scsi/scsi ] && grep -q 'Type: Sequential-Access' /proc/scsi/scsi 2>/dev/null ; then
680 if cat /proc/devices | grep -qv ' 9 st' ; then
681 if [ -n "$USEMODULES" ] ; then
682 # Try to load the module. If it fails, ignore it...
683 insmod -p st >/dev/null 2>&1 && modprobe -s st >/dev/null 2>&1
688 # There could be a new kernel version. Remove old psdevtab database
691 # Now that we have all of our basic modules loaded and the kernel going,
692 # let's dump the syslog ring somewhere so we can find it later
693 mv -f /var/log/dmesg /var/log/dmesg.old
694 dmesg > /var/log/dmesg
695 chmod 640 /var/log/dmesg /var/log/dmesg.old
697 kill -TERM $(/sbin/pidof getkey) >/dev/null 2>&1
699 if is_yes "$PROMPT"; then
700 /sbin/getkey i && touch /var/run/confirm
705 # This must be last line !
706 # vi:syntax=sh:tw=78:ts=8:sw=4