Changeset a6cd72e for udev/mount.sh
- Timestamp:
- Feb 21, 2006, 1:37:37 AM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 128c984
- Parents:
- ce36880
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
udev/mount.sh
rce36880 ra6cd72e 1 #! /bin/bash 1 #!/bin/sh 2 ######################################################################## 3 # 4 # Description : Input devices 5 # 6 # Authors : Based on Open Suse Udev Rules 7 # kay.sievers@suse.de 8 # 9 # Adapted to : Jim Gifford 10 # LFS 11 # 12 # Version : 00.00 13 # 14 # Notes : 15 # 16 ######################################################################## 2 17 3 . /etc/sysconfig/hardware/scripts/functions 18 . /etc/sysconfig/rc 19 . ${rc_functions} 4 20 . /etc/sysconfig/storage 5 21 … … 20 36 NODES="$NODES /dev/$sl" 21 37 done 22 info_mesg "Avilable nodes: $NODES"38 boot_mesg "Avilable nodes: $NODES" 23 39 24 40 NODE= … … 33 49 NODE="$n" 34 50 FSCK="$fsck" 35 info_mesg "matching line for $DEVNAME:"36 info_mesg "$dn $mp $fs $opts $dump $fsck $x"51 boot_mesg "matching line for $DEVNAME:" 52 boot_mesg "$dn $mp $fs $opts $dump $fsck $x" 37 53 break 2 38 54 fi … … 43 59 MESSAGE="`fsck -a $DEVNAME`" 44 60 RET=$? 45 info_mesg "$MESSAGE"61 boot_mesg "$MESSAGE" 46 62 case $RET in 47 63 0|1) : ;; 48 64 2|3) 49 info_mesg "Please unplug device $DEVNAME, and plug it again"65 boot_mesg "Please unplug device $DEVNAME, and plug it again" 50 66 logger -t $0 "fsck for '$DEVNAME' failed. Will not mount it." 51 67 exit 0 … … 63 79 MESSAGE="`mount -av "$NODE"`" 64 80 test $? != 0 && logger -t $0 "Could not mount '$DEVNAME'." 65 info_mesg "$MESSAGE"81 boot_mesg "$MESSAGE" 66 82 fi
Note: See TracChangeset
for help on using the changeset viewer.