Revision 0276f557
Added /etc/modules, and changed network setup
Removed /etc/network/interfaces, which blocks until a dhcp server gives
the Gumstix an IP address resulting in a boot time of ~2:15 instead of
~0:15. Instead, dhclient is started in rc.local.
scout_gumstix/etc/modules | ||
---|---|---|
1 |
# /etc/modules: kernel modules to load at boot time. |
|
2 |
# |
|
3 |
# This file contains the names of kernel modules that should be loaded |
|
4 |
# at boot time, one per line. Lines beginning with "#" are ignored. |
|
5 |
|
|
6 |
g_ether |
|
7 |
i2c_dev |
|
8 |
pwm |
scout_gumstix/etc/network/interfaces | ||
---|---|---|
1 |
# interfaces(5) file used by ifup(8) and ifdown(8) |
|
2 |
auto lo |
|
3 |
iface lo inet loopback |
|
4 |
auto usb0 |
|
5 |
iface usb0 inet dhcp |
scout_gumstix/etc/rc.local | ||
---|---|---|
11 | 11 |
# |
12 | 12 |
# By default this script does nothing. |
13 | 13 |
|
14 |
dhclient -nw usb0 |
|
15 |
|
|
14 | 16 |
export_as_output() { |
15 | 17 |
last_dir="$PWD" |
16 | 18 |
cd /sys/class/gpio |
... | ... | |
18 | 20 |
cd "gpio$1" |
19 | 21 |
echo out > direction |
20 | 22 |
chgrp gpio value |
21 |
chown g+w value # TODO necessary?
|
|
23 |
chown g+w value |
|
22 | 24 |
cd "$last_dir" |
23 | 25 |
} |
24 | 26 |
|
Also available in: Unified diff