Revonzy Mini Shell

Şuanki Dizin: /lib/dracut/modules.d/40network/
Dosya Yükle :
Şuanki Dosya : //lib/dracut/modules.d/40network/parse-vlan.sh

#!/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
    parsevlan "$vlan"

    echo "$phydevice" > /tmp/vlan.${phydevice}.phy
    echo "$vlanname" > /tmp/vlan.${vlanname}.${phydevice}
done

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux vps.suncrosonline.com 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
Apache
162.241.69.42