diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-13 03:15:40 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-11-13 00:22:00 -0600 |
commit | 7ac0561ab349bb33a1b6bb6c31fb73bbe5ca3dbd (patch) | |
tree | 07a0b60a07d68eaba3afd73bb0d5f707b8c3b9dc /rc.inet1 | |
parent | 9e341fbb562a4686c26f3e97b1b82b3c4ca987f2 (diff) | |
download | slacknetsetup-7ac0561ab349bb33a1b6bb6c31fb73bbe5ca3dbd.tar.xz |
Create and document a new VLANOPTS variable.
This variable can be used to set custom options to configure the VLAN
interface. It does not need to be used in 'normal' operation with a VLAN.
Diffstat (limited to 'rc.inet1')
-rw-r--r-- | rc.inet1 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -271,6 +271,12 @@ if_up() { ((IF_UP == 1)) && /sbin/ip link set dev ${iface} down return fi + while read -r -d \| VLANOPT; do + if [ -n "$VLANOPT" ]; then + debug_log "/sbin/ip link set dev ${1} type vlan $VLANOPT" + /sbin/ip link set dev ${1} type vlan $VLANOPT + fi + done <<<"${VLANOPTS[$i]}|" # The | on the end is required. fi # Set hardware address: if [ -n "${HWADDR[$i]}" ]; then |