From 1f35e1795d73abac8deb4cc67401e0c59fd38dd0 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 19 Feb 2011 12:44:05 +0000 Subject: [PATCH] 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 SVN-Revision: 25579 --- net/vblade/Makefile | 2 +- net/vblade/files/vblade.config | 2 ++ net/vblade/files/vblade.init | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/net/vblade/Makefile b/net/vblade/Makefile index 9a8afc00d..ca5f371e9 100644 --- a/net/vblade/Makefile +++ b/net/vblade/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vblade PKG_VERSION:=20 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=@SF/aoetools/vblade diff --git a/net/vblade/files/vblade.config b/net/vblade/files/vblade.config index 1f35c07c0..455988ac0 100644 --- a/net/vblade/files/vblade.config +++ b/net/vblade/files/vblade.config @@ -3,10 +3,12 @@ # option slot '1' # option netif 'eth0' # option device '/dev/sda' +# option options '-r' # #config vblade # option shelf '1' # option slot '2' # option netif 'eth0' # option device '/dev/sdb' +# option options '-r' # diff --git a/net/vblade/files/vblade.init b/net/vblade/files/vblade.init index bf59d582d..afed46bee 100644 --- a/net/vblade/files/vblade.init +++ b/net/vblade/files/vblade.init @@ -9,7 +9,8 @@ start_service() { config_get slot "$section" slot config_get netif "$section" netif config_get device "$section" device - vbladed $shelf $slot $netif $device + config_get options "$section" options + vbladed $options $shelf $slot $netif $device } start() { -- 2.30.2