Changeset a44ae577 for bootscripts/lfs/sbin/ifup
- Timestamp:
- 09/07/2021 09:01:23 PM (3 years ago)
- Branches:
- 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, arm, bdubbs/gcc13, 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:
- 408fb782
- Parents:
- e7fb2ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/sbin/ifup
re7fb2ca ra44ae577 49 49 50 50 --version | -V) echo "${VERSTR}"; exit 0 ;; 51 51 52 52 -*) echo "ifup: ${1}: invalid option" >&2 53 53 echo "${USAGE}" >& 2 54 54 exit 2 ;; 55 55 56 56 *) break ;; 57 57 esac … … 103 103 for S in ${SERVICE}; do 104 104 if [ ! -x "/lib/services/${S}" ]; then 105 MSG="\nUnable to process ${file}. Either " 105 MSG="\nUnable to process ${file}. Either " 106 106 MSG="${MSG}the SERVICE '${S} was not present " 107 107 MSG="${MSG}or cannot be executed." … … 114 114 115 115 # Create/configure the interface 116 for S in ${SERVICE}; do 116 for S in ${SERVICE}; do 117 117 IFCONFIG=${file} /lib/services/${S} ${IFACE} up 118 118 done … … 129 129 if test -n "${MTU}"; then 130 130 if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then 131 for I in $IFACE $INTERFACE_COMPONENTS; do 132 ip link set dev $I mtu $MTU; 131 for I in $IFACE $INTERFACE_COMPONENTS; do 132 ip link set dev $I mtu $MTU; 133 133 done 134 134 else 135 135 log_info_msg2 "Invalid MTU $MTU" 136 136 fi 137 fi 137 fi 138 138 139 139 # Set the route default gateway if requested
Note:
See TracChangeset
for help on using the changeset viewer.