projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add preinit modularization work by Daniel Dickinson (cshore)
[openwrt/svn-archive/archive.git]
/
package
/
base-files
/
files
/
lib
/
firstboot
/
30_is_rootfs_mounted
diff --git a/package/base-files/files/lib/firstboot/30_is_rootfs_mounted
b/package/base-files/files/lib/firstboot/30_is_rootfs_mounted
new file mode 100644
(file)
index 0000000..
7c3fe6c
--- /dev/null
+++ b/
package/base-files/files/lib/firstboot/30_is_rootfs_mounted
@@ -0,0
+1,10
@@
+#!/bin/sh
+
+# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2010 Vertical Communications
+
+skip_if_rootfs_mounted() {
+ mount "$mtdpart" /rom/jffs -t jffs2 || exit
+}
+
+boot_hook_add switch2jffs skip_if_rootfs_mounted