diff --git a/bin/oref0-setup.sh b/bin/oref0-setup.sh index a0ad6158f..63216b6ac 100755 --- a/bin/oref0-setup.sh +++ b/bin/oref0-setup.sh @@ -895,6 +895,11 @@ if prompt_yn "" N; then sed -i.bak -e "s|DAEMON_CONF=$|DAEMON_CONF=/etc/hostapd/hostapd.conf|g" /etc/init.d/hostapd cp $HOME/src/oref0/headless/interfaces.ap /etc/network/ || die "Couldn't copy interfaces.ap" cp /etc/network/interfaces /etc/network/interfaces.client || die "Couldn't copy interfaces.client" + if [ ! -z "$BT_MAC" ]; then + printf 'Checking for the bnep0 interface in the interfaces.client file and adding if missing...' + # Make sure the bnep0 interface is in the /etc/networking/interface + (grep -qa bnep0 /etc/network/interfaces.client && printf 'skipped.\n') || (printf '\n%s\n\n' "iface bnep0 inet dhcp" >> /etc/network/interfaces.client && printf 'added.\n') + fi #Stop automatic startup of hostapd & dnsmasq update-rc.d -f hostapd remove update-rc.d -f dnsmasq remove