diff options
Diffstat (limited to 'makekernel.in')
-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.' |