Browse Source

- hd1: move node-creation directly to rcS

master
vanhofen 8 years ago
parent
commit
093645cb30
  1. 22
      skel-root/coolstream/hd1/etc/init.d/rcS
  2. 23
      skel-root/coolstream/hd1/sbin/mknodes

22
skel-root/coolstream/hd1/etc/init.d/rcS

@ -34,8 +34,26 @@ date -s "2017-01-01 00:00"
# directory for wireless drivers
mkdir -p /var/run/wpa_supplicant
# create cs-drivernodes
mknodes
# create nodes
# <name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
makedevs /dev << EONODES
watchdog c 644 0 0 10 130
cnxt d 755 0 0
cnxt/cnxt_gen_drv c 644 0 0 102 0
notifyq c 644 0 0 102 1
user_kal c 644 0 0 102 2
display c 644 0 0 238 0
cs_control c 644 0 0 249 0
input d 755 0 0
input/nevis_ir c 644 0 0 240 0
input/event0_uinput c 644 0 0 10 223
input/mouse c 644 0 0 13 32 0 1 4
input/event2 c 644 0 0 13 66
input/event3 c 644 0 0 13 67
EONODES
ln -sf nevis_ir /dev/input/event0
ln -sf nevis_ir /dev/input/input0
service hostname start

23
skel-root/coolstream/hd1/sbin/mknodes

@ -1,23 +0,0 @@
#!/bin/sh
/bin/echo "running $0"
# <name ><type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
makedevs /dev << EOF
watchdog c 644 0 0 10 130
cnxt d 755 0 0
cnxt/cnxt_gen_drv c 644 0 0 102 0
notifyq c 644 0 0 102 1
user_kal c 644 0 0 102 2
display c 644 0 0 238 0
cs_control c 644 0 0 249 0
input d 755 0 0
input/nevis_ir c 644 0 0 240 0
input/event0_uinput c 644 0 0 10 223
input/mouse c 644 0 0 13 32 0 1 4
input/event2 c 644 0 0 13 66
input/event3 c 644 0 0 13 67
EOF
ln -sf nevis_ir /dev/input/event0
ln -sf nevis_ir /dev/input/input0
/bin/echo "done $0"
Loading…
Cancel
Save