friendly-recovery 286 B

1234567891011121314
  1. #!/bin/sh
  2. set -e
  3. [ ! -e /run/friendly_recovery.resume ]
  4. normaldir=$1
  5. earlydir=$2
  6. latedir=$3
  7. set -- $(cat /proc/cmdline)
  8. for cmdline_arg in "$@"; do
  9. if [ "$cmdline_arg" = "recovery" ]
  10. then
  11. ln -sf /lib/systemd/system/friendly-recovery.target $earlydir/default.target
  12. break
  13. fi
  14. done