stateful_cleaner.sh 576 B

1234567891011121314151617
  1. #!/bin/bash
  2. # menu_plugin
  3. PLUGIN_NAME="Stateful Cleaner"
  4. PLUGIN_FUNCTION="Clean stateful"
  5. PLUGIN_DESCRIPTION="Cleans up unneccecary files on stateful to free up space"
  6. PLUGIN_AUTHOR="rainestorme"
  7. PLUGIN_VERSION=0
  8. doas() {
  9. ssh -t -p 1337 -i /rootkey -oStrictHostKeyChecking=no root@127.0.0.1 "$@"
  10. }
  11. doas "rm -Rf /mnt/stateful_partition/cros_sign_backups
  12. rm -Rf /mnt/stateful_partition/unencrypted/apkcache/*
  13. rm -Rf /mnt/stateful_partition/unencrypted/cache/vpd/*
  14. rm -f /mnt/stateful_partition/murkmod/kern_backup.img
  15. rm -f /mnt/stateful_partition/murkmod/root_backup.img"