diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2019-10-13 19:01:25 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-10-13 23:17:53 +0200 |
commit | 5d65e7741e0ac50a0c28d9e5c3575a0ae60fb66e (patch) | |
tree | b7b86000ddbfe05618051d011fed5c16a63a78a6 /source/n/network-scripts/scripts/rc.inet1 | |
parent | 775310bf07e34137f86d467187836baea192c3d7 (diff) | |
download | current-5d65e7741e0ac50a0c28d9e5c3575a0ae60fb66e.tar.gz current-5d65e7741e0ac50a0c28d9e5c3575a0ae60fb66e.tar.xz |
Sun Oct 13 19:01:25 UTC 201920191013190125
a/pkgtools-15.0-noarch-26.txz: Rebuilt.
upgradepkg: add spaces to --dry-run package list. Thanks to Markus Wiesner.
l/aspell-0.60.8-x86_64-1.txz: Upgraded.
n/network-scripts-15.0-noarch-9.txz: Rebuilt.
rc.inet1: Fix typos and spacing.
rc.inet2: Start rc.firewall first. This had been later in the script due to
the now unsupported idea of having /usr on NFS. Thanks to abga.
rc.inet2: If present and executable, start the Kerberos init scripts.
rc.inet2: Remove obsolete rpc.pcnfsd/rpc.bwnfsd section from the end.
n/proftpd-1.3.6a-x86_64-1.txz: Upgraded.
xap/pan-0.146-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/n/network-scripts/scripts/rc.inet1')
-rw-r--r-- | source/n/network-scripts/scripts/rc.inet1 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/n/network-scripts/scripts/rc.inet1 b/source/n/network-scripts/scripts/rc.inet1 index cf9da0f46..59f89eda7 100644 --- a/source/n/network-scripts/scripts/rc.inet1 +++ b/source/n/network-scripts/scripts/rc.inet1 @@ -22,7 +22,7 @@ else # output to stdout/stderr: LOGGER=/bin/cat fi -# Handy wrapper for verbose logging +# Handy wrapper for verbose logging: debug_log() { if [ "$DEBUG_ETH_UP" = "yes" ]; then echo "/etc/rc.d/rc.inet1: $*" | $LOGGER @@ -52,7 +52,7 @@ debug_log "List of interfaces: '${IFNAME[*]}'" # LOOPBACK FUNCTIONS # ###################### -# Function to bring up the loopback interface. If loopback is +# Function to bring up the loopback interface. If loopback is # already up, do nothing. lo_up() { if [ -e /sys/class/net/lo ]; then @@ -78,7 +78,7 @@ lo_down() { # INTERFACE FUNCTIONS # ####################### -# Function to create virtual interfaces +# Function to create virtual interfaces. virtif_create() { # argument is 'i' - the position of this interface in the VIRTIFNAME array. # this loop goes from i=0 to i=number_of_configured_virtual_interfaces_minus_one @@ -88,7 +88,7 @@ virtif_create() { done } -# Function to destory virtual interfaces +# Function to destroy virtual interfaces. virtif_destroy() { # argument is 'i' - the position of this interface in the VIRTIFNAME array. for i in $(seq 0 $((${#VIRTIFNAME[@]} - 1))); do @@ -122,7 +122,7 @@ br_close() { /sbin/ip link del ${IFNAME[$1]} } -# Function to bring up a network interface. If the interface is +# Function to bring up a network interface. If the interface is # already up or does not yet exist (perhaps because the kernel driver # is not loaded yet), do nothing. if_up() { @@ -201,7 +201,7 @@ if_up() { # fi #fi #### (end commented out) - # 15 seconds should be a reasonable default DHCP timeout. 30 was too much. + # 15 seconds should be a reasonable default DHCP timeout. 30 was too much. echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS} ${1}" | $LOGGER /sbin/dhcpcd -L -t ${DHCP_TIMEOUT[$i]:-15} ${DHCP_OPTIONS} ${1} if [ "$?" == "0" ]; then # the dhcp call has succeeded |