Changeset 716db1f for bootscripts/lfs/sbin/ifup
- Timestamp:
- 09/20/2021 07:37:34 AM (3 years ago)
- Branches:
- multilib
- Children:
- 60870bc
- Parents:
- e680022 (diff), 7e62bbc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/sbin/ifup
re680022 r716db1f 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.