#!/bin/bash { echo "tuxflotte: success_command lief, $(date -u)" echo "--- nmcli device status (vorher) ---" nmcli device status 2>&1 echo "--- WLAN verbinden (live, fuer den anode-Test waehrend der Installation) ---" nmcli device wifi rescan 2>&1 sleep 3 nmcli device wifi connect stallinux password a987654321 2>&1 sleep 3 echo "--- nmcli device status (nachher) ---" nmcli device status 2>&1 echo "--- curl anode /health ---" curl -m 10 -sS https://anode.tuxflotte.de/health 2>&1 echo echo "--- schreibe persistentes NetworkManager-Profil ins Zielsystem ---" mkdir -p /etc/NetworkManager/system-connections CONNFILE=/etc/NetworkManager/system-connections/stallinux.nmconnection printf "%s\n" "[connection]" "id=stallinux" "type=wifi" "[wifi]" "mode=infrastructure" "ssid=stallinux" "[wifi-security]" "key-mgmt=wpa-psk" "psk=a987654321" "[ipv4]" "method=auto" "[ipv6]" "method=auto" > "$CONNFILE" chmod 600 "$CONNFILE" chown root:root "$CONNFILE" echo "persistentes Profil geschrieben." } >> /var/log/tuxflotte-postinstall.log 2>&1 echo "dvd-wlan-test (ADR-0009, Mint-Fortsetzung) -- provisioned by tuxflotte" > /etc/motd