Initial commit: epaper-dashboard for 7.3" ACeP 7-Color display
- dashboard.py: plugin-based renderer with 4x4 grid layout - admin.py: web UI with layout editor + plugin configs - layout.py: pack algorithm, item placement, grid system - plugins/: clock, weather, system, spotify, strava, gmail, minimax, hello - network_watchdog.py: WiFi AP/client mode management - waveshare_epd_init.py: vendor driver stub
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Erlaubt dem koptikp-User NetworkManager ohne Passwort zu steuern.
|
||||
# Wird via polkit ausgewertet.
|
||||
set -e
|
||||
|
||||
RULE='polkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.NetworkManager.") === 0 &&
|
||||
subject.local === true && subject.active === true) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});'
|
||||
|
||||
RULE_FILE="/etc/polkit-1/rules.d/50-allow-networkmanager.rules"
|
||||
echo "Schreibe $RULE_FILE..."
|
||||
sudo -n bash -c "cat > $RULE_FILE <<'RULEEOF'
|
||||
$POLKIT_RULE
|
||||
RULEEOF
|
||||
chmod 644 $RULE_FILE"
|
||||
|
||||
echo "--- Inhalt: ---"
|
||||
cat $RULE_FILE
|
||||
echo
|
||||
echo "--- Test: nmcli hotspot (kein pw mehr nötig) ---"
|
||||
sudo -n nmcli device wifi hotspot ifname wlan0 ssid epaper-test password test1234
|
||||
sleep 3
|
||||
nmcli -t -f NAME,TYPE,DEVICE connection show --active
|
||||
echo
|
||||
echo "--- Cleanup ---"
|
||||
sudo -n nmcli connection down epaper-test 2>&1
|
||||
sudo -n nmcli connection delete epaper-test 2>&1
|
||||
echo "Fertig."
|
||||
Reference in New Issue
Block a user