diff options
author | Christian Hesse | 2015-06-30 09:51:35 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-30 09:51:35 +0200 |
commit | 45c1b7aab8c1a46b8bfc851f2f75fe6f17c4beee (patch) | |
tree | 36ca4d3d39c5626400769b00809a47582b6dd745 /mkinitcpio-passwd.install | |
download | aur-45c1b7aab8c1a46b8bfc851f2f75fe6f17c4beee.tar.gz |
initial import of mkinitcpio-passwd 0.1.0.r1.gf26e054-1
Diffstat (limited to 'mkinitcpio-passwd.install')
-rw-r--r-- | mkinitcpio-passwd.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mkinitcpio-passwd.install b/mkinitcpio-passwd.install new file mode 100644 index 000000000000..199664729710 --- /dev/null +++ b/mkinitcpio-passwd.install @@ -0,0 +1,13 @@ +#!/bin/sh + +post_install() { + echo " > Now add 'passwd' to your HOOKS array in /etc/mkinitcpio.conf" + echo " > and rebuild initial ramdisk." + echo " > You can then set password with password=user:password or" + echo " > pwhash=user:passwordhash" + echo " > Add secure shell authorized key with authorized_key=user:type:key" +} + +post_remove() { + sed -i "/^HOOKS=/s/passwd//" /etc/mkinitcpio.conf +} |