Skript file: /~heha/ewa/Logger/.geheim/wlan-lab.zip/Makefile

# WLAN einrichten auf SSID "lab"
# Installieren: sudo make install
# Deinstallieren: sudo make uninstall
# ZIP-Datei erstellen: make zip
# Hochladen: make upload

install: wpa_supplicant.conf Deutsche_Telekom_Root_CA_2.crt
	@echo "Ein evtl. eingerichteter eduroam-Zugang wird plattgemacht!"
	cp wpa_supplicant.conf /etc/wpa_supplicant/
	cp Deutsche_Telekom_Root_CA_2.crt /usr/share/ca-certificates/mozilla/
# Wird nicht gebraucht
	apt remove network-manager
# Alternativ erst mal "sudo killall wpa_supplicant; sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf" starten
# Das passiert automatisch beim Neustart.
	systemctl reboot

uinstall:
	@echo "Da ist nichts zu tun. Notfalls apt install network-manager."

zip: wlan-lab.zip

wlan-lab.zip: Deutsche_Telekom_Root_CA_2.crt\
	wpa_supplicant.conf\
	Makefile
	zip -u $@ $^

upload: wlan-lab.zip
	@echo put wlan-lab.zip eingeben!
	@sftp heha@login:public_html/ewa/Logger/geheim
Detected encoding: ASCII (7 bit)2