mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 19:28:26 +02:00
[ltq-vmmc] move /dev/vmmcX creation to a more central place
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32024 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f6bfa9b749
commit
ae1aca2eb7
@ -5,21 +5,15 @@
|
|||||||
START=31
|
START=31
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
# TODO: clean up this mess
|
[ ! -c /dev/vmmc10 ] && {
|
||||||
[ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Twinpass-VE" ] && {
|
mknod /dev/vmmc10 c 122 10
|
||||||
[ ! -e /dev/danube-port ] && mknod /dev/danube-port c 254 0
|
mknod /dev/vmmc11 c 122 11
|
||||||
return;
|
mknod /dev/vmmc12 c 122 12
|
||||||
}
|
mknod /dev/vmmc13 c 122 13
|
||||||
[ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` != "Danube" ] && {
|
mknod /dev/vmmc14 c 122 14
|
||||||
[ ! -e /dev/amazon_s-port ] && mknod /dev/amazon_s-port c 240 1
|
mknod /dev/vmmc15 c 122 15
|
||||||
echo "INFO configuring HW scheduling 33/66"
|
mknod /dev/vmmc16 c 122 16
|
||||||
echo "t0 0x0" > /proc/mips/mtsched
|
mknod /dev/vmmc17 c 122 17
|
||||||
echo "t1 0x1" > /proc/mips/mtsched
|
mknod /dev/vmmc18 c 122 18
|
||||||
echo "v0 0x0" > /proc/mips/mtsched
|
|
||||||
}
|
|
||||||
[ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Danube" ] && {
|
|
||||||
[ ! -e /dev/danube-port ] && mknod /dev/danube-port c 240 1
|
|
||||||
# switch life-line relais
|
|
||||||
echo 1 > /sys/class/leds/fxs_relay/brightness
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,22 +7,6 @@ SERVICE_PID_FILE=/var/run/owsip.pid
|
|||||||
|
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
|
|
||||||
load_module() {
|
|
||||||
MODULE=`lsmod | grep vmmc`
|
|
||||||
[ ! -z "$MODULE" ] || ( insmod vmmc ; sleep 3 )
|
|
||||||
[ ! -c /dev/vmmc10 ] && {
|
|
||||||
mknod /dev/vmmc10 c 122 10
|
|
||||||
mknod /dev/vmmc11 c 122 11
|
|
||||||
mknod /dev/vmmc12 c 122 12
|
|
||||||
mknod /dev/vmmc13 c 122 13
|
|
||||||
mknod /dev/vmmc14 c 122 14
|
|
||||||
mknod /dev/vmmc15 c 122 15
|
|
||||||
mknod /dev/vmmc16 c 122 16
|
|
||||||
mknod /dev/vmmc17 c 122 17
|
|
||||||
mknod /dev/vmmc18 c 122 18
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
relay_set () {
|
relay_set () {
|
||||||
local cfg="$1"
|
local cfg="$1"
|
||||||
local gpio value
|
local gpio value
|
||||||
@ -41,7 +25,6 @@ relay_set () {
|
|||||||
start() {
|
start() {
|
||||||
config_load telephony
|
config_load telephony
|
||||||
config_foreach relay_set relay
|
config_foreach relay_set relay
|
||||||
load_module
|
|
||||||
service_start /usr/bin/owsip_ua
|
service_start /usr/bin/owsip_ua
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user