mount_root 517 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. # Initialize hook variables et by pulling in from preinit
  5. preinit_essential_hook=
  6. preinit_main_hook=
  7. failsafe_hook=
  8. initramfs_hook=
  9. preinit_mount_root=
  10. . /lib/functions/boot.sh
  11. for pi_source_file in /lib/preinit/*; do
  12. . $pi_source_file
  13. done
  14. # Override function that doesn't apply to use of mount_root as a command rather
  15. # than as part of preinit
  16. preinit_echo() {
  17. echo "$@"
  18. }
  19. boot_run_hook preinit_mount_root