EVERYTHING FROM THE OTHER REPO
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# In case we have a slow-to-appear interface (e.g. eth-over-USB),
|
||||
# and we need to configure it, wait until it appears, but not too
|
||||
# long either. IF_WAIT_DELAY is in seconds.
|
||||
|
||||
if [ "${IF_WAIT_DELAY}" -a ! -e "/sys/class/net/${IFACE}" ]; then
|
||||
printf "Waiting for interface %s to appear" "${IFACE}"
|
||||
while [ ${IF_WAIT_DELAY} -gt 0 ]; do
|
||||
if [ -e "/sys/class/net/${IFACE}" ]; then
|
||||
printf "\n"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
printf "."
|
||||
: $((IF_WAIT_DELAY -= 1))
|
||||
done
|
||||
printf " timeout!\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#### Configure for dhcp
|
||||
# Current strategy where it automatically selects an IP address using dhcp.
|
||||
|
||||
# Alternate strategy where you select an IP address. To do this,
|
||||
# comment out the above statement for dhcp, uncomment out the below
|
||||
# statement, and set XXX to be a number 3-253. The IP you can connect to
|
||||
# will be 192.168.1.XXX where XXX is the number you just set.
|
||||
|
||||
#### Configure ifi WiFi static address
|
||||
#auto wlp1s0
|
||||
#iface wlp1s0 inet static
|
||||
# address 10.10.1.XXX
|
||||
# network 10.10.1.1
|
||||
# netmask 255.255.255.0
|
||||
# broadcast 10.10.1.255
|
||||
# gateway 10.10.1.1
|
||||
# dns-nameservers 206.67.222.222 206.67.220.220
|
||||
# pre-up wpa_supplicant -B -i wlp1s0 -c /var/etc/wpa_supplicant.conf
|
||||
# post-down killall -q wpa-supplicant
|
||||
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
# This is also hard coded in the *70* udev rule
|
||||
# Configure eth0 static IP
|
||||
auto eth0
|
||||
iface eth0 inet static
|
||||
address 172.24.84.101
|
||||
network 172.24.84.0
|
||||
netmask 255.255.255.0
|
||||
broadcast 172.24.84.255
|
||||
|
||||
# For EVT and DVT (intel wifi)
|
||||
auto wlp1s0
|
||||
iface wlp1s0 inet dhcp
|
||||
post-up wpa_supplicant -B -i wlp1s0 -c /var/etc/wpa_supplicant.conf
|
||||
pre-down wpa_cli -i wlan0 terminate
|
||||
udhcpc_opts -R -b -t 3 -T 5 -A 5
|
||||
|
||||
# For DVT2/PVT (TI wifi)
|
||||
auto wlan0
|
||||
iface wlan0 inet dhcp
|
||||
post-up wireless-startup
|
||||
pre-down wpa_cli -i wlan0 terminate
|
||||
udhcpc_opts -R -b -t 3 -T 5 -A 5
|
||||
Reference in New Issue
Block a user