Changeset 15962fe for bootscripts/lfs/sysconfig
- Timestamp:
- Sep 2, 2006, 11:02:35 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- c4fcf54
- Parents:
- 3a86839
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/sysconfig/network-devices/ifup
r3a86839 r15962fe 63 63 if [ -n "${SERVICE}" -a -x "${network_devices}/services/${SERVICE}" ]; then 64 64 if [ -z "${CHECK_LINK}" -o "${CHECK_LINK}" = "y" -o "${CHECK_LINK}" = "yes" -o "${CHECK_LINK}" = "1" ]; then 65 if ip link show ${1} > /dev/null 2>&1; then 66 link_status=`ip link show ${1} 2> /dev/null | grep ${1}` 67 if [ -n "${link_status}" ]; then 68 if ! echo "${link_status}" | grep -q UP; then 69 ip link set ${1} up 65 TEST="`ip addr show ${1} | grep inet | cut -f1 -d'/' | cut -f2 -d't' | cut -f2 -d' '`" 66 if [ "$TEST" != "" ]; then 67 boot_mesg "Interface ${1} already configured." ${WARNING} 68 echo_warning 69 continue 70 else 71 if ip link show ${1} > /dev/null 2>&1; then 72 link_status=`ip link show ${1} 2> /dev/null | grep ${1}` 73 if [ -n "${link_status}" ]; then 74 if ! echo "${link_status}" | grep -q UP; then 75 ip link set ${1} up 76 fi 70 77 fi 78 else 79 boot_mesg "Interface ${1} doesn't exist." ${WARNING} 80 echo_warning 81 continue 71 82 fi 72 else73 boot_mesg "Interface ${1} doesn't exist." ${WARNING}74 echo_warning75 continue76 83 fi 77 84 fi
Note:
See TracChangeset
for help on using the changeset viewer.