mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
vdr: Auto-allow access from GREEN subnet.
This commit is contained in:
@@ -24,6 +24,16 @@
|
|||||||
. /opt/pakfire/lib/functions.sh
|
. /opt/pakfire/lib/functions.sh
|
||||||
extract_files
|
extract_files
|
||||||
restore_backup ${NAME}
|
restore_backup ${NAME}
|
||||||
|
|
||||||
|
# Automatically add the GREEN network to svdrphosts.conf
|
||||||
|
(
|
||||||
|
eval $(readhash /var/ipfire/ethernet/settings)
|
||||||
|
|
||||||
|
if [ -n "${GREEN_NETADDRESS}" ] && [ -n "${GREEN_BROADCAST}" ]; then
|
||||||
|
echo "${GREEN_NETADDRESS}/${GREEN_BROADCAST}" >> /etc/vdr/svdrphosts.conf
|
||||||
|
fi
|
||||||
|
) || :
|
||||||
|
|
||||||
start_service --background ${NAME}
|
start_service --background ${NAME}
|
||||||
|
|
||||||
# Create video directory if it does not exist, yet.
|
# Create video directory if it does not exist, yet.
|
||||||
|
|||||||
Reference in New Issue
Block a user