Changeset aa14485 for bootscripts/lfs
- Timestamp:
- 02/29/2012 10:22:52 PM (12 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, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- afe9489
- Parents:
- 6d6a2f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/sbin/ifup
r6d6a2f0 raa14485 59 59 60 60 if [ ! -r "${file}" ]; then 61 log_ warning_msg "\n${file} is missing or cannot be accessed."61 log_failure_msg2 "${file} is missing or cannot be accessed." 62 62 exit 1 63 63 fi … … 66 66 67 67 if [ "$IFACE" = "" ]; then 68 log_failure_msg "\n${file} does not define an interface [IFACE]."68 log_failure_msg2 "${file} does not define an interface [IFACE]." 69 69 exit 1 70 70 fi … … 73 73 # is not set to yes 74 74 if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then 75 log_info_msg2 "skipped \n"75 log_info_msg2 "skipped" 76 76 exit 0 77 77 fi … … 79 79 for S in ${SERVICE}; do 80 80 if [ ! -x "/lib/services/${S}" ]; then 81 MSG="\n Unable to process ${file}. Either "81 MSG="\n Unable to process ${file}. Either " 82 82 MSG="${MSG}the SERVICE '${S} was not present " 83 83 MSG="${MSG}or cannot be executed." … … 103 103 104 104 else 105 log_ warning_msg "\nInterface ${IFACE} doesn't exist."106 exit 0105 log_failure_msg2 "Interface ${IFACE} doesn't exist." 106 exit 1 107 107 fi 108 108 fi 109 110 # Set MTU if requested. Check if MTU has a "good" value. 111 if test -n "${MTU}"; then 112 if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then 113 ip link set dev ${IFACE} mtu $MTU 114 else 115 log_info_msg2 "Invalid MTU $MTU" 116 fi 117 fi 109 118 110 119 for S in ${SERVICE}; do
Note:
See TracChangeset
for help on using the changeset viewer.