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

post_install() {
	echo " > Now add 'hostname' to your HOOKS array in /etc/mkinitcpio.conf"
	echo " > and rebuild initial ramdisk."
	echo " > Attention: This will overwrite your /etc/hostname!"
}

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