Files
operating-system/buildroot-external/misc/rauc-hook
Pascal Vizeli 38c1df36c0 Fix time on overlay (#88)
* Fix time on overlay

* Fix rights

* Fix timesync
2018-07-08 00:43:46 +02:00

24 lines
384 B
Bash
Executable File

#!/bin/sh
##
# Hooks
# Handle boot hocks
if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
if [ "${1}" = "slot-post-install" ]; then
/usr/lib/rauc/post-install-boot
elif [ "${1}" = "slot-pre-install" ]; then
/usr/lib/rauc/pre-install-boot
fi
fi
##
# Fixups
# timesyncd
if [ ! -d /var/lib/systemd/timesync ]; then
rm /var/lib/systemd/timesync
fi
exit 0