Remove default hostapd before installing customized one

Remove default interfaces file after debootstrap process
This commit is contained in:
zador-blood-stained 2016-06-16 20:50:29 +03:00
parent ec9e9e8f7b
commit bc2e880c3a
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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