aboutsummaryrefslogtreecommitdiffstats
path: root/package/ltq-vmmc
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-06-02 14:03:28 +0000
committerJohn Crispin <blogic@openwrt.org>2012-06-02 14:03:28 +0000
commit26572b11821c6eb2c203cbec33b690cb494c4559 (patch)
tree9b2bf887f343f2b3c9ea583c92d19e3bb8437e0e /package/ltq-vmmc
parent2338cf02a3ce86e8a74c3585d532e19c23ccbfdf (diff)
downloadupstream-26572b11821c6eb2c203cbec33b690cb494c4559.tar.gz
upstream-26572b11821c6eb2c203cbec33b690cb494c4559.tar.bz2
upstream-26572b11821c6eb2c203cbec33b690cb494c4559.zip
[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
Diffstat (limited to 'package/ltq-vmmc')
-rw-r--r--package/ltq-vmmc/files/vmmc.init26
1 files changed, 10 insertions, 16 deletions
diff --git a/package/ltq-vmmc/files/vmmc.init b/package/ltq-vmmc/files/vmmc.init
index bae7badaf0..100a97dc45 100644
--- a/package/ltq-vmmc/files/vmmc.init
+++ b/package/ltq-vmmc/files/vmmc.init
@@ -5,21 +5,15 @@
START=31
start() {
- # TODO: clean up this mess
- [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Twinpass-VE" ] && {
- [ ! -e /dev/danube-port ] && mknod /dev/danube-port c 254 0
- return;
- }
- [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` != "Danube" ] && {
- [ ! -e /dev/amazon_s-port ] && mknod /dev/amazon_s-port c 240 1
- echo "INFO configuring HW scheduling 33/66"
- echo "t0 0x0" > /proc/mips/mtsched
- echo "t1 0x1" > /proc/mips/mtsched
- 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
+ [ ! -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
}
}