Updated Dride to Raspbian Stretch (#1)
* Stretch base system working W/O DRIDE - Currently removed Dride edits/software to get base OS working * Enabled Ether over USB I slightly rearranged a few startups in stage2 to give us room for more expansion later. Boot files update important to come prior to Dride software. Stretch base system working W/O DRIDE * Dride+Stretch working - wifi works with specific Dride network - usb0 interface also works if you need to debug/hack All Dride network items have been separated into this step * DrideOS gets Dride software added back in on Debian Stretch - software base; testing commencing * Added new dride partition, clean, updated README - updated README to explain how this has been modified vs. upstream - removed and cleaned unused scripts - added dride partition creation on startup (runonce) - drideOS conditional renamed to dride-plus * Use the /dride path and provide soft links during software installation - updated README
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
#
|
||||
# This file belongs in /usr/lib/dhcpcd5/dhcpcd how you get it there is up to you
|
||||
#
|
||||
|
||||
DHCPCD=/sbin/dhcpcd
|
||||
INTERFACES=/etc/network/interfaces
|
||||
REGEX="^[[:space:]]*iface[[:space:]](*.*)[[:space:]]*inet[[:space:]]*(dhcp|static)"
|
||||
EXCLUDES=""
|
||||
|
||||
if grep -q -E $REGEX $INTERFACES; then
|
||||
#echo "Not running dhcpcd because $INTERFACES"
|
||||
#echo "defines some interfaces that will use a"
|
||||
#echo "DHCP client or static address"
|
||||
#exit 6
|
||||
for iface in `grep -E $REGEX $INTERFACES | cut -f2 -d" "`
|
||||
do
|
||||
if [[ $EXCLUDES != "" ]]; then
|
||||
EXCLUDES="${EXCLUDES}|${iface}"
|
||||
else
|
||||
EXCLUDES="${iface}"
|
||||
fi
|
||||
done
|
||||
EXCLUDES="(${EXCLUDES})"
|
||||
fi
|
||||
|
||||
exec $DHCPCD -Z $EXCLUDES $@
|
||||
Reference in New Issue
Block a user