Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #! /bin/busybox ash
  2.  
  3. /bin/busybox --install -s
  4.  
  5. rescue_shell() {
  6. echo 'Something went wrong. Running a shell.'
  7. echo 'See README for helpful commands.'
  8. exec /bin/ash
  9. }
  10.  
  11. mount -t proc none /proc
  12. mount -t sysfs none /sys
  13. mount -t devtmpfs none /dev
  14.  
  15. ### TEMPORARY TEST
  16. echo 'In the initramfs!'
  17. rescue_shell
  18. ### TEMPORARY TEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement