Skip to content

Commit a6cae3a

Browse files
authored
Removal of interface of NM and ifupdown
1 parent 28ad33a commit a6cae3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

debian-rpi-sd-builder.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ EOF
199199
id=$SSID
200200
uuid=${UUID}
201201
type=wifi
202-
interface-name=wlan0
203202
permissions=
204203
205204
[wifi]
@@ -266,6 +265,10 @@ sed -i "s|${DEVFILE}p2|LABEL=RASPIROOT|" /mnt/boot/firmware/cmdline.txt
266265
if [ "$MMSUITE" != buster ]; then
267266
chroot /mnt apt-get -y --purge --autoremove purge python2.7-minimal
268267
fi
268+
if [ $NETWORK = network-manager -o $NETWORK = systemd-networkd ]; then
269+
chroot /mnt apt-get -y --purge --autoremove purge ifupdown
270+
rm -f /mnt/etc/network/interfaces
271+
fi
269272
set +x
270273

271274
if [ "$MMSUITE" = buster ] && echo "$MMARCH" | grep -q arm64; then

0 commit comments

Comments
 (0)