[package] vblade: change config to read-only

This patch changes the default vbladed config to read-only. It
circumvents data corruption in case of the accidental simultaneous rw
mount.

Signed-off-by: Paul Geraedts <p.f.j.geraedts@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25579 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2011-02-19 12:44:05 +00:00
parent c926b187c1
commit a4ee9bd483
3 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=vblade PKG_NAME:=vblade
PKG_VERSION:=20 PKG_VERSION:=20
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/aoetools/vblade PKG_SOURCE_URL:=@SF/aoetools/vblade

View File

@ -3,10 +3,12 @@
# option slot '1' # option slot '1'
# option netif 'eth0' # option netif 'eth0'
# option device '/dev/sda' # option device '/dev/sda'
# option options '-r'
# #
#config vblade #config vblade
# option shelf '1' # option shelf '1'
# option slot '2' # option slot '2'
# option netif 'eth0' # option netif 'eth0'
# option device '/dev/sdb' # option device '/dev/sdb'
# option options '-r'
# #

View File

@ -9,7 +9,8 @@ start_service() {
config_get slot "$section" slot config_get slot "$section" slot
config_get netif "$section" netif config_get netif "$section" netif
config_get device "$section" device config_get device "$section" device
vbladed $shelf $slot $netif $device config_get options "$section" options
vbladed $options $shelf $slot $netif $device
} }
start() { start() {