1
0

preinit 586 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. [ -z "$PREINIT" ] && exec /sbin/init
  5. export PATH="%PATH%"
  6. . /lib/functions.sh
  7. . /lib/functions/preinit.sh
  8. . /lib/functions/system.sh
  9. boot_hook_init preinit_essential
  10. boot_hook_init preinit_main
  11. boot_hook_init failsafe
  12. boot_hook_init initramfs
  13. boot_hook_init preinit_mount_root
  14. for pi_source_file in /lib/preinit/*; do
  15. . $pi_source_file
  16. done
  17. boot_run_hook preinit_essential
  18. pi_mount_skip_next=false
  19. pi_jffs2_mount_success=false
  20. pi_failsafe_net_message=false
  21. boot_run_hook preinit_main