Create a lockfile for 3rd-party scripts which can be checked easily to ensure...

that no reboot will be initiated while autoupdater is running.
This commit is contained in:
@RubenKelevra 2016-05-06 13:30:06 +02:00
parent e06cde9167
commit a6f914de3f
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Create a lockfile for 3rd-party scripts which can be checked easily to ensure that
# no reboot will be initiated while autoupdater is running
lockfile='/tmp/autoupdate.lock'
touch $lockfile || logger "gluon-autoupdater: lockfile could not be written"
exit 0