mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-02-11 01:10:46 +01:00
MycroftOS: Remove NetworkManager dispatcher files
This commit is contained in:
parent
45fb135d93
commit
19e8d56ee7
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
case "$2" in
|
||||
up)
|
||||
timedatectl set-timezone "$(curl --fail https://ipapi.co/timezone)"
|
||||
;;
|
||||
esac
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user