1
0
mirror of https://git.openwrt.org/feed/routing.git synced 2024-06-14 19:23:55 +02:00
openwrt-routing/nodogsplash/files/usr/lib/nodogsplash/restart.sh
Moritz Warning fe1c67fb3d nodogsplash: update to version 5.0.2
Fix a buffer overflow in case the
query string is too long.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
2023-10-10 12:26:28 +02:00

9 lines
205 B
Bash
Executable File

#!/bin/sh
# Check if nodogsplash is running
if ndsctl status &> /dev/null; then
if [ "$(uci -q get nodogsplash.@nodogsplash[0].fwhook_enabled)" = "1" ]; then
/etc/init.d/nodogsplash restart
fi
fi