slitaz-base-files rev 286
/sbin/mktazdevs.sh: fix /dev/shm permission
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 08 00:32:28 2015 +0300 (2015-10-08) |
parents | 9bf2e6c4afc2 |
children | efc8f188db6e |
files | rootfs/sbin/mktazdevs.sh |
line diff
1.1 --- a/rootfs/sbin/mktazdevs.sh Thu Oct 08 00:22:16 2015 +0300 1.2 +++ b/rootfs/sbin/mktazdevs.sh Thu Oct 08 00:32:28 2015 +0300 1.3 @@ -1,7 +1,7 @@ 1.4 #!/bin/sh 1.5 # 1.6 # mktazdevs.sh: Make device files for SliTaz GNU/Linux 1.7 -# 2007/10/02 - 2014 <pankso@slitaz.org> 1.8 +# 2007/10/02 - 2015 <pankso@slitaz.org> 1.9 # 1.10 # As of SliTaz 5.0 we have a radicaly minimal /dev tree for ARM and we 1.11 # use mdev to create devices nodes on the fly. On i486 we use udev and 1.12 @@ -12,7 +12,7 @@ 1.13 1.14 # We do our work in the dev/ directory. 1.15 if [ -z "$1" ] ; then 1.16 - echo "usage: `basename $0` path/to/dev" 1.17 + echo "usage: $(basename $0) path/to/dev" 1.18 exit 1 1.19 fi 1.20 1.21 @@ -34,42 +34,42 @@ 1.22 mknod input/event1 c 13 65 1.23 mknod input/event2 c 13 66 1.24 mknod input/mouse0 c 13 32 1.25 -mknod input/mice c 13 63 1.26 -mknod input/ts0 c 254 0 1.27 +mknod input/mice c 13 63 1.28 +mknod input/ts0 c 254 0 1.29 1.30 # Miscellaneous one-of-a-kind stuff. 1.31 # 1.32 -mknod logibm c 10 0 1.33 -mknod psaux c 10 1 1.34 +mknod logibm c 10 0 1.35 +mknod psaux c 10 1 1.36 mknod inportbm c 10 2 1.37 -mknod atibm c 10 3 1.38 -mknod console c 5 1 1.39 -mknod full c 1 7 1.40 -mknod kmem c 1 2 1.41 -mknod mem c 1 1 1.42 -mknod null c 1 3 1.43 -mknod port c 1 4 1.44 -mknod random c 1 8 1.45 -mknod urandom c 1 9 1.46 -mknod zero c 1 5 1.47 -mknod rtc c 10 135 1.48 -mknod sr0 b 11 0 1.49 -mknod sr1 b 11 1 1.50 -mknod agpgart c 10 175 1.51 -mknod ttyS0 c 4 64 1.52 -mknod audio c 14 4 1.53 -mknod beep c 10 128 1.54 -mknod ptmx c 5 2 1.55 -mknod nvram c 10 144 1.56 +mknod atibm c 10 3 1.57 +mknod console c 5 1 1.58 +mknod full c 1 7 1.59 +mknod kmem c 1 2 1.60 +mknod mem c 1 1 1.61 +mknod null c 1 3 1.62 +mknod port c 1 4 1.63 +mknod random c 1 8 1.64 +mknod urandom c 1 9 1.65 +mknod zero c 1 5 1.66 +mknod rtc c 10 135 1.67 +mknod sr0 b 11 0 1.68 +mknod sr1 b 11 1 1.69 +mknod agpgart c 10 175 1.70 +mknod ttyS0 c 4 64 1.71 +mknod audio c 14 4 1.72 +mknod beep c 10 128 1.73 +mknod ptmx c 5 2 1.74 +mknod nvram c 10 144 1.75 ln -s /proc/kcore core 1.76 # DSP 1.77 mknod -m 0666 dsp c 14 3 1.78 # PPP dev. 1.79 -mknod ppp c 108 0 1.80 +mknod ppp c 108 0 1.81 1.82 # net/tun device. 1.83 # 1.84 -mknod net/tun c 10 200 1.85 +mknod net/tun c 10 200 1.86 1.87 # Framebuffer devs. 1.88 # 1.89 @@ -98,7 +98,7 @@ 1.90 1.91 # hda devs. 1.92 # 1.93 -mknod hda b 3 0 1.94 +mknod hda b 3 0 1.95 mknod hda1 b 3 1 1.96 mknod hda2 b 3 2 1.97 mknod hda3 b 3 3 1.98 @@ -111,7 +111,7 @@ 1.99 1.100 # hdb devs. 1.101 # 1.102 -mknod hdb b 3 64 1.103 +mknod hdb b 3 64 1.104 mknod hdb1 b 3 65 1.105 mknod hdb2 b 3 66 1.106 mknod hdb3 b 3 67 1.107 @@ -143,7 +143,7 @@ 1.108 1.109 # sdb devs. 1.110 # 1.111 -mknod sdb b 8 16 1.112 +mknod sdb b 8 16 1.113 mknod sdb1 b 8 17 1.114 mknod sdb2 b 8 18 1.115 mknod sdb3 b 8 19 1.116 @@ -160,13 +160,13 @@ 1.117 1.118 # loop devs. 1.119 # 1.120 -for i in `seq 0 7`; do 1.121 +for i in $(seq 0 7); do 1.122 mknod loop$i b 7 $i 1.123 done 1.124 1.125 # ram devs. 1.126 # 1.127 -for i in `seq 0 7`; do 1.128 +for i in $(seq 0 7); do 1.129 mknod ram$i b 1 $i 1.130 done 1.131 ln -s ram1 ram 1.132 @@ -174,20 +174,20 @@ 1.133 # tty devs. 1.134 # 1.135 mknod tty c 5 0 1.136 -for i in `seq 0 7`; do 1.137 +for i in $(seq 0 7); do 1.138 mknod tty$i c 4 $i 1.139 done 1.140 1.141 # Virtual console screen devs. 1.142 # 1.143 -for i in `seq 0 7`; do 1.144 +for i in $(seq 0 7); do 1.145 mknod vcs$i c 7 $i 1.146 done 1.147 ln -s vcs0 vcs 1.148 1.149 # Virtual console screen w/ attributes devs. 1.150 # 1.151 -for i in `seq 0 7`; do 1.152 +for i in $(seq 0 7); do 1.153 mknod vcsa$i c 7 $(($i + 128)) 1.154 done 1.155 ln -s vcsa0 vcsa 1.156 @@ -208,6 +208,8 @@ 1.157 chmod 0666 null 1.158 chmod 0622 console 1.159 chmod 0666 tty* 1.160 +chmod 1777 shm 1.161 + 1.162 status 1.163 1.164 # Script end.