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

# 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