diff options
author | Erich Eckner <git@eckner.net> | 2016-12-02 20:25:24 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-12-02 20:52:18 +0100 |
commit | 65606e941c906268f09b4ecc3bfaa1d0981b1c86 (patch) | |
tree | b9b3c148250030484ba7d4d5432b5bb0b49ce66d | |
parent | 708015ab0fe4b04dab748750275bc93380af826e (diff) | |
download | makekernel-65606e941c906268f09b4ecc3bfaa1d0981b1c86.tar.xz |
makekernel gibt nun erneuten Versuch für Passworteingabe von su
-rw-r--r-- | makekernel.in | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/makekernel.in b/makekernel.in index 023f22b..be7615c 100644 --- a/makekernel.in +++ b/makekernel.in @@ -204,12 +204,17 @@ fi echo 'becoming root ...' -su -c ' \ - . #ETCDIR#/makekernel.conf && \ - before_install_hook && \ - install -m644 --owner=root "'"${kernelImg}"'" "/boot/vmlinuz-'"${curVer}"'" && \ - grub-mkconfig -o /boot/grub/grub.cfg && \ - after_install_hook \ -' +err=1 +while [ ${err} -eq 1 ] +do + su -c ' \ + . #ETCDIR#/makekernel.conf && \ + before_install_hook && \ + install -m644 --owner=root "'"${kernelImg}"'" "/boot/vmlinuz-'"${curVer}"'" && \ + grub-mkconfig -o /boot/grub/grub.cfg && \ + after_install_hook || \ + exit 2 \ + ' && err=0 || err=$? +done echo 'Success.' |