diff --git a/distributions.sh b/distributions.sh index 6f440e6a46..7e4d19ee61 100644 --- a/distributions.sh +++ b/distributions.sh @@ -19,6 +19,9 @@ display_alert "Applying distribution specific tweaks for" "$RELEASE" "info" # Common +# remove default interfaces file if present +rm $CACHEDIR/sdcard/etc/network/interfaces + # configure the system for unattended upgrades cp $SRC/lib/scripts/50unattended-upgrades $CACHEDIR/sdcard/etc/apt/apt.conf.d/50unattended-upgrades cp $SRC/lib/scripts/02periodic $CACHEDIR/sdcard/etc/apt/apt.conf.d/02periodic diff --git a/extras/hostapd.sh b/extras/hostapd.sh index 3854b60aeb..84feef5f14 100644 --- a/extras/hostapd.sh +++ b/extras/hostapd.sh @@ -128,4 +128,5 @@ compile_hostapd() [[ ! -f $DEST/debs/armbian-hostapd-${RELEASE}_${REVISION}_${ARCH}.deb ]] && compile_hostapd display_alert "Installing" "armbian-hostapd-${RELEASE}_${REVISION}_${ARCH}.deb" "info" -chroot $CACHEDIR/sdcard /bin/bash -c "dpkg -i /tmp/armbian-hostapd-${RELEASE}_${REVISION}_${ARCH}.deb" >> $DEST/debug/hostapd-build.log +chroot $CACHEDIR/sdcard /bin/bash -c "dpkg -r hostapd" >> $DEST/debug/output.log +chroot $CACHEDIR/sdcard /bin/bash -c "dpkg -i /tmp/armbian-hostapd-${RELEASE}_${REVISION}_${ARCH}.deb" >> $DEST/debug/output.log