From bc2e880c3a59e3a1b19bddf705617578613319db Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Thu, 16 Jun 2016 20:50:29 +0300 Subject: [PATCH] Remove default hostapd before installing customized one Remove default interfaces file after debootstrap process --- distributions.sh | 3 +++ extras/hostapd.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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