summaryrefslogtreecommitdiffstats
path: root/rc.d/net-set-variable
blob: cc881e7700ab54ec6661239a67d85485db494bfe (plain)
1
2
3
4
5
6
7
8
9
10
# Set the NET variable if specified on the kernel command line.

net-set-variable() {
	local re="\<NET=([^ ]+)\>"
	if [[ -f /proc/cmdline && $(< /proc/cmdline) =~ $re ]]; then
		export NET=${BASH_REMATCH[1]}
	fi
}

add_hook multi_start net-set-variable