]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
vdr: Auto-allow access from GREEN subnet.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Apr 2013 14:45:49 +0000 (16:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Apr 2013 11:54:06 +0000 (13:54 +0200)
src/paks/vdr/install.sh

index a02357d979cbbe077f492b49c5fd455f6eff1970..c9b2a7351e3ba2852bdfdceb1227d1edca6748f3 100644 (file)
 . /opt/pakfire/lib/functions.sh
 extract_files
 restore_backup ${NAME}
 . /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.
 start_service --background ${NAME}
 
 # Create video directory if it does not exist, yet.