24 lines
424 B
Plaintext
24 lines
424 B
Plaintext
|
#!/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
|
||
|
}
|
||
|
|