Changeset 609a9e7 in bootscripts-standard for bootscripts/clfs
- Timestamp:
- May 15, 2014, 11:50:36 PM (11 years ago)
- Branches:
- master
- Children:
- 8b29156
- Parents:
- 84f3ac2
- Location:
- bootscripts/clfs/init.d
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/clfs/init.d/cleanfs
r84f3ac2 r609a9e7 79 79 -delete || failed=1 80 80 81 boot_mesg -n " /var/lock" ${NORMAL}82 cd /var/lock &&83 find . -type f ! -newer /proc -exec rm -f {} \; || failed=184 85 boot_mesg " /var/run" ${NORMAL}86 cd /var/run &&87 find . ! -type d ! -name utmp ! -newer /proc \88 -exec rm -f {} \; || failed=189 81 > /var/run/utmp 90 82 if grep -q '^utmp:' /etc/group ; then … … 95 87 (exit ${failed}) 96 88 evaluate_retval 97 89 boot_mesg "" ${NORMAL} 98 90 if [ -e /etc/sysconfig/createfiles ]; then 99 91 if egrep -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then -
bootscripts/clfs/init.d/functions.minimal
r84f3ac2 r609a9e7 27 27 # Setup default values for environment 28 28 umask 022 29 export PATH="/ bin:/usr/bin:/sbin:/usr/sbin"29 export PATH="/tools/bin:/tools/sbin:/bin:/sbin" 30 30 31 31 # Signal sent to running processes to refresh their configuration -
bootscripts/clfs/init.d/mountfs
r84f3ac2 r609a9e7 30 30 mount -f /proc || failed=1 31 31 mount -f /sys || failed=1 32 mount -f /run || failed=1 33 mount -f /dev || failed=1 32 34 (exit ${failed}) 33 35 evaluate_retval -
bootscripts/clfs/init.d/mountkernfs
r84f3ac2 r609a9e7 22 22 if ! mountpoint /proc >/dev/null; then 23 23 boot_mesg -n " /proc" ${NORMAL} 24 mount -n /proc || failed=124 mount -n -o nosuid,noexec,nodev -t proc proc /proc || failed=1 25 25 fi 26 26 27 27 if ! mountpoint /sys >/dev/null; then 28 28 boot_mesg -n " /sys" ${NORMAL} 29 mount -n /sys || failed=129 mount -n -o nosuid,noexec,nodev -t sysfs sys /sys || failed=1 30 30 fi 31 32 boot_mesg "" ${NORMAL} 33 31 if ! mountpoint /run >/dev/null; then 32 boot_mesg -n " /run" ${NORMAL} 33 mount -n -o mode=0755,nosuid,nodev -t tmpfs run /run || failed=1 34 fi 35 if ! mountpoint /dev >/dev/null; then 36 boot_mesg -n " /dev" ${NORMAL} 37 mount -n -o mode=0755,nosuid -t devtmpfs dev /dev || failed=1 38 fi 34 39 (exit ${failed}) 35 evaluate_retval 40 41 mkdir -m 1777 /run/lock 42 mkdir -p /dev/{pts,shm} 36 43 ;; 37 44 -
bootscripts/clfs/init.d/sendsignals
r84f3ac2 r609a9e7 24 24 sleep ${KILLDELAY} 25 25 26 if [ "${error_value}" = 0 ]; then26 if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then 27 27 echo_ok 28 28 else … … 36 36 sleep ${KILLDELAY} 37 37 38 if [ "${error_value}" = 0 ]; then38 if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then 39 39 echo_ok 40 40 else -
bootscripts/clfs/init.d/udev
-
Property mode
changed from
100755
to100644
r84f3ac2 r609a9e7 22 22 case "$1" in 23 23 start) 24 boot_mesg "Creating /dev in tmpfs..."25 mount -n -t tmpfs -o mode=0755 udev /dev26 evaluate_retval27 28 boot_mesg "Copying static entries..."29 cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev30 evaluate_retval31 32 boot_mesg "Setting Permissons on /dev/shm..."33 chmod 1777 /dev/shm34 evaluate_retval35 36 24 echo "" > /sys/kernel/uevent_helper 37 25 38 26 # start udevd 39 boot_mesg " Starting udevd..."27 boot_mesg "\nStarting udevd..." 40 28 /sbin/udevd --daemon 41 29 evaluate_retval … … 45 33 46 34 # unlikely, but we may be faster than the first event 47 mkdir -p /dev/.udev/queue35 #mkdir -p /run/.udev/queue 48 36 49 37 # configure all devices 50 /sbin/udevadm trigger 38 /sbin/udevadm trigger --action=add --type=subsystems 39 /sbin/udevadm trigger --action=add --type=devices 51 40 52 41 # this replaces the old loop, exits after all devices are done … … 72 61 ;; 73 62 74 reload)75 boot_mesg "Reloading udev rules..."76 udevadm control reload_rules77 cp --preserve=all --recursive --update /lib/udev/devices/* /dev78 evaluate_retval79 ;;80 81 force-reload)82 boot_mesg "Updating all available device nodes in /dev..."83 udevadm control reload_rules84 rm -rf /dev/.udev /dev/disk85 cp --preserve=all --recursive --update /lib/udev/devices/* /dev86 /sbin/udevadm trigger87 /sbin/udevadm settle88 evaluate_retval89 ;;90 91 63 *) 92 64 echo "Usage: $0 {start|stop|restart|status|reload|force-reload}" -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.