#!/bin/sh
#
# Format:
# vlan=<vlanname>:<phydevice>
#
parsevlan() {
local v=${1}:
set --
while [ -n "$v" ]; do
set -- "$@" "${v%%:*}"
v=${v#*:}
done
unset vlanname phydevice
case $# in
2) vlanname=$1; phydevice=$2 ;;
*) die "vlan= requires two parameters" ;;
esac
}
for vlan in $(getargs vlan=); do
unset vlanname
unset phydevice
if [ ! "$vlan" = "vlan" ]; then
parsevlan "$vlan"
fi
echo "phydevice=\"$phydevice\"" > /tmp/vlan.${phydevice}.phy
{
echo "vlanname=\"$vlanname\""
echo "phydevice=\"$phydevice\""
} > /tmp/vlan.${vlanname}.${phydevice}
done
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| dhclient-script.sh | File | 9.15 KB | 0755 |
|
| dhclient.conf | File | 303 B | 0644 |
|
| ifup.sh | File | 15.18 KB | 0755 |
|
| kill-dhclient.sh | File | 252 B | 0755 |
|
| module-setup.sh | File | 2.81 KB | 0755 |
|
| net-genrules.sh | File | 4.01 KB | 0755 |
|
| parse-bond.sh | File | 1.96 KB | 0755 |
|
| parse-bridge.sh | File | 1.1 KB | 0755 |
|
| parse-ibft.sh | File | 283 B | 0755 |
|
| parse-ifname.sh | File | 552 B | 0755 |
|
| parse-ip-opts.sh | File | 4.83 KB | 0755 |
|
| parse-team.sh | File | 1.56 KB | 0755 |
|
| parse-vlan.sh | File | 662 B | 0755 |
|