shutdown_funkey 309 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # Sync before all else
  3. sync
  4. # Notif fullscreen "Shutting down"
  5. notif set 0 "^^^^^^^^ SHUTTING DOWN...^^^^^^^^"
  6. # Notify system, reboot in progress
  7. REBOOTING_FILE="/run/rebooting"
  8. touch $REBOOTING_FILE
  9. # Shutdown amp
  10. audio_amp off >/dev/null 2>&1
  11. # Force Read Only
  12. ro
  13. # Poweroff
  14. poweroff