aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/ChangeLog4
-rwxr-xr-xbootscripts/lfs/lib/services/ipv4-static4
-rwxr-xr-xbootscripts/lfs/sbin/ifup1
-rw-r--r--bootscripts/lfs/sbin/ifup.810
4 files changed, 17 insertions, 2 deletions
diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog
index 39465e6c9..df4087927 100644
--- a/bootscripts/ChangeLog
+++ b/bootscripts/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-08 Bruce Dubbs <bdubbs@linuxfromscratch.org>
+ * Modify ipv4-static to support ethernet labels
+ * Output a newline if an interface is skipped during boot
+
2014-12-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
* Clarify rationale for sysklog run levels
diff --git a/bootscripts/lfs/lib/services/ipv4-static b/bootscripts/lfs/lib/services/ipv4-static
index 2d9dad39c..33fe4c21b 100755
--- a/bootscripts/lfs/lib/services/ipv4-static
+++ b/bootscripts/lfs/lib/services/ipv4-static
@@ -36,6 +36,10 @@ elif [ -n "${PEER}" ]; then
args="${args} ${IP} peer ${PEER}"
fi
+if [ -n "${LABEL}" ]; then
+ args="${args} label ${LABEL}"
+fi
+
if [ -n "${BROADCAST}" ]; then
args="${args} broadcast ${BROADCAST}"
fi
diff --git a/bootscripts/lfs/sbin/ifup b/bootscripts/lfs/sbin/ifup
index bb25176ad..317223b0b 100755
--- a/bootscripts/lfs/sbin/ifup
+++ b/bootscripts/lfs/sbin/ifup
@@ -90,6 +90,7 @@ fi
# is not set to yes
if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
log_info_msg2 "skipped"
+ echo
exit 0
fi
diff --git a/bootscripts/lfs/sbin/ifup.8 b/bootscripts/lfs/sbin/ifup.8
index 7c3a007d6..e0ca9db37 100644
--- a/bootscripts/lfs/sbin/ifup.8
+++ b/bootscripts/lfs/sbin/ifup.8
@@ -46,7 +46,8 @@ EXAMPLES
/etc/sysconfig/ifconfig.eth0:2
ONBOOT=no
- IFACE=eth0:2
+ IFACE=eth0
+ LABEL=eth0:2
SERVICE=dhcpcd
DHCP_START="--waitip"
@@ -122,6 +123,11 @@ NOTES
number of the interface. The default, if not
specified, is 24.
+ LABEL - The label to be assigned to the interface.
+ This is normally specified for assigning
+ additional IP addresses to a network
+ device. Example: eth0:2 (optional)
+
BROADCAST - The brodcast address for this interface,
e.g 192.168.1.255. If not specified,
the broadcast address will be calculated
@@ -176,4 +182,4 @@ AUTHORS
SEE ALSO
ip(8).
-IFUP/IFDOWN 8 April 2012 ifup(8)
+IFUP/IFDOWN 8 February 2015 ifup(8)