randomize-mac.conf 306 Bytes
Newer Older
Felix Eckhofer's avatar
Felix Eckhofer committed
1
2
# upstart script to run randomize-mac for a list of interfaces.
# place in /etc/init.
Felix Eckhofer's avatar
Felix Eckhofer committed
3
4
5
6
7
8
9
10
11
12
13
14

# felix@tribut.de

description "Randomize MAC address on boot"
start on starting network-manager

pre-start script
	export IFACE
	for IFACE in eth0 wlan1; do
		/etc/network/if-post-down.d/randomize-mac
	done
end script