summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update-me.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/update-me.in b/update-me.in
index bb979d4..e5f194b 100644
--- a/update-me.in
+++ b/update-me.in
@@ -10,6 +10,14 @@ fi
. #ETCDIR#/update-me.conf
+if "${hasSudo}"; then
+ for ((i=0; i<${postCmds[@]}; i++)); do
+ if [ "${postCmd[${i}]}" = 'check-kernel -r' ]; then
+ postCmd[${i}]='sudo check-kernel -r';
+ fi
+ done
+fi
+
if [ ! "$(whoami)" == "root" ]
then
if ! "${hasSudo}"