summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-12-02 20:25:24 +0100
committerErich Eckner <git@eckner.net>2016-12-02 20:52:18 +0100
commit65606e941c906268f09b4ecc3bfaa1d0981b1c86 (patch)
treeb9b3c148250030484ba7d4d5432b5bb0b49ce66d
parent708015ab0fe4b04dab748750275bc93380af826e (diff)
downloadmakekernel-65606e941c906268f09b4ecc3bfaa1d0981b1c86.tar.xz
makekernel gibt nun erneuten Versuch für Passworteingabe von su
-rw-r--r--makekernel.in19
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.'