30_is_rootfs_mounted 222 B

12345678910
  1. #!/bin/sh
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. skip_if_rootfs_mounted() {
  5. mount "$mtdpart" /rom/jffs -t jffs2 || exit
  6. }
  7. boot_hook_add switch2jffs skip_if_rootfs_mounted