SHARE
TWEET

linux on android shutdown script

Madmouse Jun 19th, 2015 (edited) 7 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LINUXROOT=/sd-ext
  2. BUSY=/system/xbin/busybox
  3. CHR=/system/xbin/chroot
  4.  
  5. export TMPDIR=/tmp
  6. export USER=root
  7. export HOME=/root
  8. export SHELL=/bin/bash
  9.  
  10. export TERM=linux
  11. export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
  12. export LC_ALL=C
  13. export LANGUAGE=C
  14. export LANG=C
  15.  
  16. /system/xbin/umount $LINUXROOT/dev/pts
  17. /system/xbin/umount $LINUXROOT/dev
  18. /system/xbin/umount $LINUXROOT/sys
  19. /system/xbin/umount $LINUXROOT/proc
  20.  
  21. # clean up X
  22. #$BUSY $CHR $LINUXROOT su - aaron -c "vncserver -kill :1"
  23. #$BUSY $CHR $LINUXROOT rm /tmp/.X*-lock
  24. #$BUSY $CHR $LINUXROOT rm -rf /tmp/.X11-unix/
  25.  
  26. # close sshd
  27. $BUSY $CHR $LINUXROOT killall -TERM sshd
RAW Paste Data
Top