Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 64be4e94 authored by Robert Nelson's avatar Robert Nelson
Browse files

seeed: convert to udhcp+connman over create-ap, just more reliabe specially with wlan0


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 09f744b6
No related merge requests found
......@@ -15,9 +15,9 @@ deb_arch="armhf"
#
deb_include="apt-transport-https alsa-utils apache2 autoconf automake avahi-daemon bash-completion \
bc bison bluetooth build-essential ca-certificates connman cpufrequtils curl \
debhelper dnsmasq dosfstools fakeroot file firmware-atheros \
debhelper udhcpd dosfstools fakeroot file firmware-atheros \
firmware-ralink firmware-realtek firmware-zd1211 flex gdb git-core hdparm \
hexedit hostapd htop i2c-tools info initramfs-tools iperf iw memtester libnss-mdns \
hexedit hostapd htop memtester i2c-tools info initramfs-tools iperf iw libnss-mdns \
libusb-1.0-0-dev libncurses5-dev libtool linux-base locales lshw lsof \
lzma lzop openssh-server pkg-config ppp rfkill \
rsync ruby ruby-dev screen ssl-cert sudo systemd tmux \
......@@ -58,7 +58,7 @@ repo_rcnee_pkg_list="linux-image-4.1.18-ti-rt-r51 linux-headers-4.1.18-ti-rt-r51
bb-customizations bb-wl18xx-firmware bb-node-red-installer bb-bonescript-installer-beta \
doc-beaglebone-getting-started \
am335x-pru-package \
c9-core-installer create-ap device-tree-compiler \
c9-core-installer device-tree-compiler \
haveged libsoc-dev \
libsoc2 \
rcn-ee-archive-keyring \
......
......@@ -15,7 +15,7 @@ deb_arch="armhf"
#
deb_include="apt-transport-https alsa-utils apache2 autoconf automake avahi-daemon bash-completion \
bc bison bluetooth build-essential ca-certificates connman cpufrequtils curl \
dbus-x11 debhelper dnsmasq dosfstools fakeroot fbset file firmware-atheros \
dbus-x11 debhelper udhcpd dosfstools fakeroot fbset file firmware-atheros \
firmware-ralink firmware-realtek firmware-zd1211 flex gdb git-core hdparm \
hexedit hostapd htop i2c-tools info initramfs-tools iperf iw memtester libnss-mdns \
libusb-1.0-0-dev libncurses5-dev libtool lightdm linux-base locales lshw lsof \
......@@ -59,7 +59,7 @@ repo_rcnee_pkg_list="linux-image-4.1.18-ti-rt-r51 linux-headers-4.1.18-ti-rt-r51
bb-customizations bb-wl18xx-firmware bb-node-red-installer \
bb-bonescript-installer-beta doc-beaglebone-getting-started \
am335x-pru-package ipumm-dra7xx-installer vpdma-dra7xx-installer \
c9-core-installer chromium-browser cmst compton-conf create-ap device-tree-compiler dsptop \
c9-core-installer chromium-browser cmst compton-conf device-tree-compiler dsptop \
firmware-am57xx-opencl-monitor haveged libfm-tools libgl1-mesa-dri libsoc-dev \
libsoc2 lximage-qt lxqt-about lxqt-admin lxqt-common lxqt-config lxqt-globalkeys \
lxqt-notificationd lxqt-panel lxqt-policykit lxqt-runner lxqt-session lxqt-sudo \
......
......@@ -186,6 +186,40 @@ setup_desktop () {
if [ -f /bin/ping ] ; then
chmod u+x /bin/ping
fi
if [ -f /etc/init.d/connman ] ; then
mkdir -p /etc/connman/ || true
wfile="/etc/connman/main.conf"
echo "[General]" > ${wfile}
echo "PreferredTechnologies=ethernet,wifi" >> ${wfile}
echo "SingleConnectedTechnology=false" >> ${wfile}
echo "AllowHostnameUpdates=false" >> ${wfile}
echo "PersistentTetheringMode=true" >> ${wfile}
echo "NetworkInterfaceBlacklist=usb0" >> ${wfile}
mkdir -p /var/lib/connman/ || true
wfile="/var/lib/connman/settings"
echo "[global]" > ${wfile}
echo "OfflineMode=false" >> ${wfile}
echo "" >> ${wfile}
echo "[Wired]" >> ${wfile}
echo "Enable=true" >> ${wfile}
echo "Tethering=false" >> ${wfile}
echo "" >> ${wfile}
echo "[WiFi]" >> ${wfile}
echo "Enable=true" >> ${wfile}
echo "Tethering=true" >> ${wfile}
echo "Tethering.Identifier=BeagleBone" >> ${wfile}
echo "Tethering.Passphrase=BeagleBone" >> ${wfile}
echo "" >> ${wfile}
echo "[Gadget]" >> ${wfile}
echo "Enable=false" >> ${wfile}
echo "Tethering=false" >> ${wfile}
echo "" >> ${wfile}
echo "[P2P]" >> ${wfile}
echo "Enable=false" >> ${wfile}
echo "Tethering=false" >> ${wfile}
fi
}
install_gem_pkgs () {
......
......@@ -186,6 +186,40 @@ setup_desktop () {
if [ -f /bin/ping ] ; then
chmod u+x /bin/ping
fi
if [ -f /etc/init.d/connman ] ; then
mkdir -p /etc/connman/ || true
wfile="/etc/connman/main.conf"
echo "[General]" > ${wfile}
echo "PreferredTechnologies=ethernet,wifi" >> ${wfile}
echo "SingleConnectedTechnology=false" >> ${wfile}
echo "AllowHostnameUpdates=false" >> ${wfile}
echo "PersistentTetheringMode=true" >> ${wfile}
echo "NetworkInterfaceBlacklist=usb0" >> ${wfile}
mkdir -p /var/lib/connman/ || true
wfile="/var/lib/connman/settings"
echo "[global]" > ${wfile}
echo "OfflineMode=false" >> ${wfile}
echo "" >> ${wfile}
echo "[Wired]" >> ${wfile}
echo "Enable=true" >> ${wfile}
echo "Tethering=false" >> ${wfile}
echo "" >> ${wfile}
echo "[WiFi]" >> ${wfile}
echo "Enable=true" >> ${wfile}
echo "Tethering=true" >> ${wfile}
echo "Tethering.Identifier=BeagleBone" >> ${wfile}
echo "Tethering.Passphrase=BeagleBone" >> ${wfile}
echo "" >> ${wfile}
echo "[Gadget]" >> ${wfile}
echo "Enable=false" >> ${wfile}
echo "Tethering=false" >> ${wfile}
echo "" >> ${wfile}
echo "[P2P]" >> ${wfile}
echo "Enable=false" >> ${wfile}
echo "Tethering=false" >> ${wfile}
fi
}
install_gem_pkgs () {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment