b1823276be
This is a package for the vblade tool, which exports disks over the aoe protocol. We already have the aoetools for connecting to them. Signed-off-by: Kyle Anderson <kyle@xkyle.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@22429 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
424 B
Bash
24 lines
424 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
|
|
vbladed $shelf $slot $netif $device
|
|
}
|
|
|
|
start() {
|
|
config_load vblade
|
|
config_foreach start_service vblade
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/pkill -f /usr/sbin/vblade
|
|
}
|
|
|