From: Michael Tremer Date: Thu, 11 Apr 2013 14:45:49 +0000 (+0200) Subject: vdr: Auto-allow access from GREEN subnet. X-Git-Tag: v2.13-core68~2^2~18^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2cec0cefc084bcd5c98dcf16cbd5219e4a5b7af9;p=people%2Fstevee%2Fipfire-2.x.git vdr: Auto-allow access from GREEN subnet. --- diff --git a/src/paks/vdr/install.sh b/src/paks/vdr/install.sh index a02357d979..c9b2a7351e 100644 --- a/src/paks/vdr/install.sh +++ b/src/paks/vdr/install.sh @@ -24,6 +24,16 @@ . /opt/pakfire/lib/functions.sh extract_files 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} # Create video directory if it does not exist, yet.