Changeset 5597318 for bootscripts/contrib/lsb-v3/init.d
- Timestamp:
- 06/27/2010 07:33:25 AM (14 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 7956b88
- Parents:
- c8595ed
- Location:
- bootscripts/contrib/lsb-v3/init.d
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/contrib/lsb-v3/init.d/checkfs
rc8595ed r5597318 26 26 27 27 mount -n -o remount,ro / >/dev/null 28 if [ ${?} !=0 ]28 if [ ${?} -ne 0 ] 29 29 then 30 30 log_failure_msg "Mounting root file system in read-only mode" … … 54 54 error_value=${?} 55 55 56 if [ "${error_value}" =0 ]56 if [ "${error_value}" -eq 0 ] 57 57 then 58 58 log_success_msg "Checking file systems..." 59 elif [ "${error_value}" =1 ]59 elif [ "${error_value}" -eq 1 ] 60 60 then 61 61 log_warning_msg "Checking file systems..." … … 64 64 echo -e "${WARNING}corrected. You may want to double-check that" 65 65 echo -e "${WARNING}everything was fixed properly.${NORMAL}" 66 elif [ "${error_value}" = 2 -o "${error_value}" =3 ]; then66 elif [ "${error_value}" -eq 2 -o "${error_value}" -eq 3 ]; then 67 67 log_warning_msg "Checking file systems..." 68 68 echo -e "${WARNING}WARNING:\n" -
bootscripts/contrib/lsb-v3/init.d/lfs-functions
rc8595ed r5597318 78 78 STATUS=$? 79 79 echo "Checking ${MESSAGE} status:" 80 if [ "${STATUS}" ="0" ]; then80 if [ "${STATUS}" -eq "0" ]; then 81 81 log_success_msg "Running with PID(s) ${pidlist}" 82 82 else … … 203 203 # Print messages for the generic force-reload, reload, restart, 204 204 # and try-restart targets 205 if [ "${error_value}" ="0" ]205 if [ "${error_value}" -eq "0" ] 206 206 then 207 207 log_success_msg "${message}${MESSAGE} " -
bootscripts/contrib/lsb-v3/init.d/localnet
rc8595ed r5597318 23 23 ip addr add 127.0.0.1/8 label lo dev lo 24 24 ip link set lo up 25 if [ "${?}" ="0" ]25 if [ "${?}" -eq "0" ] 26 26 then 27 27 log_success_msg "Bringing up the loopback interface..." … … 31 31 32 32 hostname "${HOSTNAME}" 33 if [ "${?}" ="0" ]33 if [ "${?}" -eq "0" ] 34 34 then 35 35 log_success_msg "Setting hostname to ${HOSTNAME}..." … … 42 42 stop) 43 43 ip link set lo down 44 if [ "${?}" ="0" ]44 if [ "${?}" -eq "0" ] 45 45 then 46 46 log_success_msg "Bringing down the loopback interface..." … … 61 61 hostname "${HOSTNAME}" 62 62 retval=$(( "${retval}" + "${?}" )) 63 if [ "${retval}" ="0" ]63 if [ "${retval}" -eq "0" ] 64 64 then 65 65 log_success_msg "Restarting local network..." -
bootscripts/contrib/lsb-v3/init.d/rc
rc8595ed r5597318 120 120 error_value=${?} 121 121 122 if [ "${error_value}" !="0" ]; then122 if [ "${error_value}" -ne "0" ]; then 123 123 print_error_msg 124 124 fi -
bootscripts/contrib/lsb-v3/init.d/sendsignals
rc8595ed r5597318 23 23 error_value=${?} 24 24 # Account for successful return value of 2 25 if [ ${error_value} =2 ]26 error_value= "0"25 if [ ${error_value} -eq 2 ] 26 error_value=0 27 27 fi 28 28 sleep 3 … … 35 35 error_value=${?} 36 36 # Account for successful return value of 2 37 if [ ${error_value} =2 ]38 error_value= "0"37 if [ ${error_value} -eq 2 ] 38 error_value=0 39 39 fi 40 40 -
bootscripts/contrib/lsb-v3/init.d/udev
rc8595ed r5597318 41 41 mount -n -t tmpfs tmpfs /dev -o mode=755 42 42 fi 43 if [ ${?} !=0 ]; then43 if [ ${?} -ne 0 ]; then 44 44 echo_failure 45 45 boot_mesg -n "FAILURE:\n\nCannot mount a tmpfs" ${FAILURE}
Note:
See TracChangeset
for help on using the changeset viewer.