mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
7 lines
318 B
Python
7 lines
318 B
Python
|
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()
|