diff options
author | Mike Fiore <mfiore@multitech.com> | 2013-04-12 16:40:03 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2013-04-12 16:40:03 -0500 |
commit | cd425aba1e466ee72178ae83eded2550feec89ec (patch) | |
tree | 708d3abbda5ee2dd79a30f1177cb715173fca10f /multitech | |
parent | 08ba4d8d611e28eca5921b5d356c123a6adc318d (diff) |
config: mount /var/oem on boot
Diffstat (limited to 'multitech')
-rw-r--r-- | multitech/recipes/base-files/base-files/mtocgd3/fstab | 1 | ||||
-rw-r--r-- | multitech/recipes/multitech/config/config.init | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/multitech/recipes/base-files/base-files/mtocgd3/fstab b/multitech/recipes/base-files/base-files/mtocgd3/fstab index 84dc1f0..1d60d52 100644 --- a/multitech/recipes/base-files/base-files/mtocgd3/fstab +++ b/multitech/recipes/base-files/base-files/mtocgd3/fstab @@ -7,6 +7,7 @@ tmpfs /dev/shm tmpfs mode=0777 0 0 tmpfs /media/ram tmpfs defaults 0 0 /dev/mtdblock6 /var/config jffs2 defaults 0 0 +/dev/mtdblock7 /var/oem jffs2 defaults,ro 0 0 # SD card /dev/mmcblk0p1 /media/card auto defaults,sync 0 0 diff --git a/multitech/recipes/multitech/config/config.init b/multitech/recipes/multitech/config/config.init index 770be18..11233c0 100644 --- a/multitech/recipes/multitech/config/config.init +++ b/multitech/recipes/multitech/config/config.init @@ -2,6 +2,7 @@ CONFIG_MTDC=/dev/mtd6 CONFIG_DIR=/var/config +OEM_DIR=/var/oem FILES="network/interfaces \ ppp/options \ @@ -16,6 +17,9 @@ case $1 in echo "Mounting ${CONFIG_DIR}" mkdir -p ${CONFIG_DIR} mount ${CONFIG_DIR} + echo "Mounting ${OEM_DIR}" + mkdir -p ${OEM_DIR} + mount ${OEM_DIR} # Prepare flash for JFFS2 if mount fails if [ $? -ne 0 ]; then |