From Tiny Pudu, 6 Months ago, written in Plain Text.
  1. Linux kernel 3.14.9, with busybox, using busybox init. Compiled against musl libc, so busybox is a static binary. No inittab, so using busybox defaults.
  2.  
  3. When booting...
  4.  
  5.  
  6. can't run '/etc/init.d/rcS': Exec format error
  7.  
  8. Please press Enter to activate this console.
  9. # cat /etc/init.d/rcS
  10. #!/bin/sh
  11.  
  12. echo "Init script">&2
  13. # ls -lh /etc/init.d/
  14. -rwxr-xr-x    1 root    root    673  Jan  14  04:45 S01rootfs
  15. -rwxr-xr-x    1 root    root     33  Jan  15  00:56 rcS
  16. # /etc/init.d/rcS
  17. -/bin/sh: /etc/init.d/rcS not found
  18. # /bin/sh /etc/init.d/rcS
  19. Init script
  20. # /bin/busybox sh /etc/init.d/rcS
  21. Init script
  22.  
captcha