Catch duplicate processes
This commit is contained in:
parent
fb8414a85d
commit
e5030f489a
@ -46,6 +46,7 @@ then
|
|||||||
/usr/local/sbin/notify_all "Kernel update tracker" "Verification success\!\nStarting compilation.." --icon=dialog-information
|
/usr/local/sbin/notify_all "Kernel update tracker" "Verification success\!\nStarting compilation.." --icon=dialog-information
|
||||||
else
|
else
|
||||||
/usr/local/sbin/notify_all "Kernel update tracker" "Couldn't verify the kernel. Quitting\!" --icon=dialog-warning
|
/usr/local/sbin/notify_all "Kernel update tracker" "Couldn't verify the kernel. Quitting\!" --icon=dialog-warning
|
||||||
|
rm /tmp/kernelcheck.pid
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
tar xf /tmp/linux-$latest.tar
|
tar xf /tmp/linux-$latest.tar
|
||||||
@ -57,6 +58,7 @@ then
|
|||||||
cp /root/.config/kernel/.config /tmp/linux-$latest/.config
|
cp /root/.config/kernel/.config /tmp/linux-$latest/.config
|
||||||
else
|
else
|
||||||
/usr/local/sbin/notify_all "Kernel update tracker" "No config file found\!\nAdd it to /root/.config/kernel/.config" --icon=dialog-warning
|
/usr/local/sbin/notify_all "Kernel update tracker" "No config file found\!\nAdd it to /root/.config/kernel/.config" --icon=dialog-warning
|
||||||
|
rm /tmp/kernelcheck.pid
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
/usr/local/sbin/notify_all "Kernel update tracker" "Starting kernel build..\nThis can take a while."
|
/usr/local/sbin/notify_all "Kernel update tracker" "Starting kernel build..\nThis can take a while."
|
||||||
@ -97,5 +99,8 @@ then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
/usr/local/sbin/notify_all "Kernel update tracker" "Internal error.. Debug time\!" --icon=dialog-warning
|
/usr/local/sbin/notify_all "Kernel update tracker" "Internal error.. Debug time\!" --icon=dialog-warning
|
||||||
|
rm /tmp/kernelcheck.pid
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm /tmp/kernelcheck.pid
|
Reference in New Issue
Block a user