Revision 04270a10
ID | 04270a101a6d9a010ef41c9a783478376f525a0c |
Changed everything to use group scout because of Upstart bug
scout_gumstix/etc/modules | ||
---|---|---|
4 | 4 |
# at boot time, one per line. Lines beginning with "#" are ignored. |
5 | 5 |
|
6 | 6 |
g_ether |
7 |
i2c_dev |
|
7 |
#i2c_dev
|
|
8 | 8 |
pwm |
9 |
encoder |
scout_gumstix/etc/netplug/netplugd.conf | ||
---|---|---|
1 |
usb* |
scout_gumstix/etc/rc.local | ||
---|---|---|
11 | 11 |
# |
12 | 12 |
# By default this script does nothing. |
13 | 13 |
|
14 |
set_perms() { |
|
15 |
chgrp scout "$1" |
|
16 |
chmod g+w "$1" |
|
17 |
} |
|
18 |
|
|
14 | 19 |
export_as_output() { |
15 | 20 |
last_dir="$PWD" |
16 | 21 |
cd /sys/class/gpio |
17 | 22 |
echo "$1" > export |
18 | 23 |
cd "gpio$1" |
19 | 24 |
echo out > direction |
20 |
chgrp gpio value |
|
21 |
chmod g+w value |
|
25 |
set_perms value |
|
22 | 26 |
cd "$last_dir" |
23 | 27 |
} |
24 | 28 |
|
... | ... | |
27 | 31 |
export_as_output $i |
28 | 32 |
done |
29 | 33 |
|
34 |
for i in /sys/class/encoder/enc*; do |
|
35 |
set_perms $i/ticks |
|
36 |
done |
|
37 |
|
|
30 | 38 |
exit 0 |
scout_gumstix/etc/udev/rules.d/40-pwm.rules | ||
---|---|---|
1 |
SUBSYSTEM=="pwm", GROUP="gpio" |
|
1 |
SUBSYSTEM=="pwm", GROUP="scout" |
scout_gumstix/etc/udev/rules.d/60-ttyO0.rules | ||
---|---|---|
1 |
KERNEL=="ttyO0", GROUP="scout" |
Also available in: Unified diff