Changeset 569
- Timestamp:
- 04/19/13 08:23:52 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/initrd/sali/init
r567 r569 30 30 _DMESG="/bin/dmesg" 31 31 32 ## Are we allowed to run?33 if [ -n "$($_MOUNT | $_GREP "/dev")" ]34 then35 $_PRINTF "Looks like /dev is already mounted, this script can only be used for initialization of SALI\n"36 exit 137 fi38 39 32 ## Default value for init 40 33 init="/sbin/init" … … 53 46 $_MOUNT -t proc proc /proc 54 47 $_MOUNT -t sysfs sysfs /sys 55 $_MOUNT -t devtmpfs -o mode=0755 tmpfs/dev48 $_MOUNT -t devtmpfs -o mode=0755 udev /dev 56 49 $_MOUNT -t tmpfs -o mode=0755 tmpfs /run 57 50 … … 94 87 $_GREP '^[^#]' /etc/udev/links.conf | while read type name args 95 88 do 96 if [ "${type}" -a "${name}" -a ! -e "/dev/${name}" -a ! -L "/dev/${name}"]89 if [ "${type}" -a "${name}" ] 97 90 then 98 continue 91 if [ ! -e "/dev/${name}" -o ! -L "/dev/${name}" ] 92 then 93 continue 94 fi 99 95 fi 100 96 case "${type}" in
Note: See TracChangeset
for help on using the changeset viewer.