summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-06-08 20:45:19 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-06-08 20:45:19 +0000
commitca92e7d97f7ed39f85c25f8a03ad8a5185bbc5fb (patch)
treea9eb0b82828f14293ed246bb5b25897372b80b44 /package
parent186c8973763cdf2321fce20c22ed11390485725d (diff)
Revert "[package/block-mount] remove example config file"
This isn't needed anymore due to commit 27138 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27139 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/block-mount/Makefile2
-rw-r--r--package/block-mount/files/fstab.config20
2 files changed, 22 insertions, 0 deletions
diff --git a/package/block-mount/Makefile b/package/block-mount/Makefile
index ac6c5f3ce..c2c9d33f1 100644
--- a/package/block-mount/Makefile
+++ b/package/block-mount/Makefile
@@ -48,6 +48,8 @@ endef
define Package/block-mount/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/fstab.init $(1)/etc/init.d/fstab
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_DATA) ./files/fstab.config $(1)/etc/config/fstab
$(INSTALL_DIR) $(1)/lib/functions/fsck
$(INSTALL_DATA) ./files/mount.sh $(1)/lib/functions/
$(INSTALL_DATA) ./files/fsck.sh $(1)/lib/functions/
diff --git a/package/block-mount/files/fstab.config b/package/block-mount/files/fstab.config
new file mode 100644
index 000000000..de52e20ce
--- /dev/null
+++ b/package/block-mount/files/fstab.config
@@ -0,0 +1,20 @@
+config global automount
+ option from_fstab 1
+ option anon_mount 1
+
+config global autoswap
+ option from_fstab 1
+ option anon_swap 0
+
+config mount
+ option target /home
+ option device /dev/sda1
+ option fstype ext4
+ option options rw,sync
+ option enabled 0
+ option enabled_fsck 0
+
+config swap
+ option device /dev/sda2
+ option enabled 0
+