Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Last active January 24, 2026 11:21
Show Gist options
  • Select an option

  • Save mschmitt/cc1d863ab74cff5cb7c8fae64ffbe299 to your computer and use it in GitHub Desktop.

Select an option

Save mschmitt/cc1d863ab74cff5cb7c8fae64ffbe299 to your computer and use it in GitHub Desktop.
Unifi Zwangstrennung
###
# curl https://gist.githubusercontent.com/mschmitt/cc1d863ab74cff5cb7c8fae64ffbe299/raw/yolo.sh | bash -
###
set -o errexit
set -x
cat > /etc/systemd/system/zwangstrennung.service <<Here
[Unit]
Description=pppd reconnect (Service)
[Service]
ExecStart=pkill -HUP pppd
Here
cat > /etc/systemd/system/zwangstrennung.timer <<Here
[Unit]
Description=pppd reconnect (Timer)
[Timer]
OnCalendar=04:30:00
[Install]
WantedBy=multi-user.target
Here
systemctl daemon-reload
systemctl enable --now zwangstrennung.timer
systemctl status zwangstrennung.timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment