packages/net/vblade/files/vblade.init
florian a4ee9bd483 [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
2011-02-19 12:44:05 +00:00

25 lines
472 B
Bash

#!/bin/sh /etc/rc.common
# Startup init script for vblade for Openwrt
START=95
STOP=10
start_service() {
local section="$1"
config_get shelf "$section" shelf
config_get slot "$section" slot
config_get netif "$section" netif
config_get device "$section" device
config_get options "$section" options
vbladed $options $shelf $slot $netif $device
}
start() {
config_load vblade
config_foreach start_service vblade
}
stop() {
/usr/bin/pkill -f /usr/sbin/vblade
}