7 lines
318 B
Python
Raw Normal View History

2024-02-08 23:24:30 +01:00
import subprocess
def webgui():
return subprocess.run("sudo /etc/raspap/lighttpd/configport.sh --restart", shell=True, capture_output=True, text=True).stdout.strip()
def adblock():
return subprocess.run("sudo /bin/systemctl restart dnsmasq.service", shell=True, capture_output=True, text=True).stdout.strip()