diff options
author | Giancarlo Razzolini | 2015-07-15 00:21:53 -0300 |
---|---|---|
committer | Giancarlo Razzolini | 2015-07-15 00:21:53 -0300 |
commit | 354addb488a4cf8904fc2ee10d9148dc3ae5c372 (patch) | |
tree | 6d6a23f2c0e7a625dbf04e1626784a2a8ad9b2e0 /mkinitcpio-netconf.install | |
download | aur-354addb488a4cf8904fc2ee10d9148dc3ae5c372.tar.gz |
* Initial release.
Diffstat (limited to 'mkinitcpio-netconf.install')
-rw-r--r-- | mkinitcpio-netconf.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mkinitcpio-netconf.install b/mkinitcpio-netconf.install new file mode 100644 index 000000000000..c9940afc326e --- /dev/null +++ b/mkinitcpio-netconf.install @@ -0,0 +1,24 @@ +#!/bin/bash + +post_install() { + cat<<INSTALLEOF + This hook will parse the ip= kernel command line variable and configure any + interfaces specified using ipconfig found in the mkinitcpio-nfs-utils package. + It is meant to be used alongside other hooks that need early userspace networking + such as, mkinitcpio-dropbear. This hook doesn't support yet systemd enabled + initramfs images. To use it, add the netconf hook before any other hook that need + networking in "/etc/mkinitcpio.conf" and rebuild the initramfs. +INSTALLEOF +} + +post_remove() { + cat<<REMOVEEOF + Remove the "netconf" from the "HOOKS" section in "/etc/mkinitcpio.conf" + and rebuild the initramfs. Also, remove the ip= cmdline parameter and regenerate + your bootloader configuration. +REMOVEEOF +} + +post_upgrade() { + post_install +} |