extmount.sh 570 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # Copyright 2010 Vertical Communications
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. determine_root_device() {
  6. root_device="$(mount | grep ' / ' | cut -f1 -d\ | grep -v rootfs )"
  7. }
  8. set_jffs_mp() {
  9. jffs="$(awk '/jffs2/ {print $2}' /proc/mounts)"
  10. }
  11. er_load_modules() {
  12. [ -d $ER_ROOT/etc/modules.d ] && {
  13. cd $ER_ROOT/etc/modules.d && {
  14. local modules="$(grep -l '# May be required for rootfs' *)"
  15. cat $modules | sed 's/^\([^#]\)/insmod \1/' | sh 2>&- || :
  16. }
  17. }
  18. }