summarylogtreecommitdiffstats
path: root/mkinitcpio-randommac.install
blob: a3e0b43cf29d0373a46c81e2aa3717e04e74a76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

post_install() {
	echo " > Now add 'randommac' to your HOOKS array in /etc/mkinitcpio.conf"
	echo " > and rebuild initial ramdisk. This will initialize first network"
	echo " > device with a random MAC address when 'randommac' is set on the"
	echo " > kernel command line."
}

post_remove() {
	sed -i "/^HOOKS=/s/randommac//" /etc/mkinitcpio.conf
}