Last active
January 24, 2026 11:21
-
-
Save mschmitt/cc1d863ab74cff5cb7c8fae64ffbe299 to your computer and use it in GitHub Desktop.
Unifi Zwangstrennung
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| # 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