Advertisement
Guest User

Untitled

a guest
Nov 16th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. # This is run first except when booting in single-user mode.
  2.  
  3. # Startup the system
  4. ::sysinit:/bin/mount -t proc proc /proc
  5. ::sysinit:/bin/mount -t sysfs sysfs /sys
  6. ::sysinit:/bin/mount -t devtmpfs devtmpfs /dev
  7. ::sysinit:/bin/mount -o remount,rw /
  8. ::sysinit:/bin/mkdir -p /dev/pts
  9. ::sysinit:/bin/mount -t devpts devpts /dev/pts
  10. ::sysinit:/bin/mount -a
  11. ::sysinit:/sbin/swapon -a
  12. null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
  13. null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
  14. null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
  15. null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
  16. # set hostname
  17. null::sysinit:/bin/busybox hostname -F /etc/hostname
  18. ::sysinit:/etc/init.d/rcS
  19.  
  20. # Stuff to do before rebooting
  21. #::ctrlaltdel:/sbin/reboot
  22. ::shutdown:/etc/init.d/rcK
  23. ::shutdown:/sbin/swapoff -a
  24. ::shutdown:/bin/umount -a -r
  25.  
  26. # Stuff to do when restarting the init process
  27. ::restart:/sbin/init
  28.  
  29.  
  30. ttyMSM0::respawn:/sbin/getty 115200 ttyMSM0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement