overlay_sync 331 Bytes
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1 2
#!/bin/sh

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
usage="Usage:
    $(basename "$0") 1 - 'order' syncing of rootfs changes on reboot/shutdown
    $(basename "$0") 0 - discard syncing
"

case "$1" in
  0)
    if [ -f /tmp/overlay_sync ]; then
      rm /tmp/overlay_sync
    fi
    ;;
  1)
    echo $@ > /tmp/overlay_sync
    ;;
  *)
    echo "$usage"
    ;;
esac
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
21 22

exit 0