MycroftOS: Remove NetworkManager dispatcher files

This commit is contained in:
j1nx 2020-07-28 14:48:23 +02:00
parent 45fb135d93
commit 19e8d56ee7
3 changed files with 0 additions and 38 deletions

View File

@ -1,6 +0,0 @@
#!/bin/sh
case "$2" in
up)
timedatectl set-timezone "$(curl --fail https://ipapi.co/timezone)"
;;
esac

View File

@ -1,20 +0,0 @@
#! /usr/bin/bash
[ -n "$CONNECTION_UUID" ] || exit
INTERFACE=$1
ACTION=$2
case $ACTION in
up | dhcp4-change | dhcp6-change)
[ -n "$DHCP4_NTP_SERVERS" ] || exit
exec > /etc/systemd/timesyncd.conf.d/$CONNECTION_UUID.conf
echo "[Time]"
echo "NTP=$DHCP4_NTP_SERVERS"
systemctl restart systemd-timesyncd
;;
down)
rm -f /etc/systemd/timesyncd.conf.d/$CONNECTION_UUID.conf
systemctl restart systemd-timesyncd
;;
esac

View File

@ -1,12 +0,0 @@
#!/bin/sh
if [ "$1" = "eth0" ]; then
case "$2" in
up)
nmcli radio wifi off
;;
down)
nmcli radio wifi on
;;
esac
fi