summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-02 10:22:05 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-02 10:23:59 -0800
commita305ff90c296df58a1de27a02f77c08871ecf40c (patch)
tree10b4157ee6200e4709970664acacf2778146dcd3 /functions
parent925e4562da09aeaf80c41f2fb085fd4295526368 (diff)
downloadvyatta-op-a305ff90c296df58a1de27a02f77c08871ecf40c.tar.gz
vyatta-op-a305ff90c296df58a1de27a02f77c08871ecf40c.zip
Merge branch 'kenwood' of 192.168.100.1:git/vyatta-op into kenwood
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/allowed/hosts24
1 files changed, 0 insertions, 24 deletions
diff --git a/functions/allowed/hosts b/functions/allowed/hosts
deleted file mode 100755
index 912a9ea..0000000
--- a/functions/allowed/hosts
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# utility function used by node.tag/node.def to list "allowed"
-# or expanded hosts/address
-#
-declare -a _vyatta_hosts
-declare -a _vyatta_symbolic_hosts=( '<hostname>' '<x.x.x.x>' )
-declare -i _vyatta_hostfile_lastmod=0
-declare _vyatta_hostfile_sed='s/#.*//; ; s/^[^ \t]\+[ \t]\+//; s/[ \t]\+/\n/g; /^$/d'
-
-function vyatta-allowed-hosts ()
-{
- : ${HOSTFILE:=/etc/hosts}
- local -i curmod=$(stat --printf %Y $HOSTFILE)
-
- if [ $curmod -ne $_vyatta_hostfile_lastmod ] ; then
- _vyatta_hosts=( $(sed "$_vyatta_hostfile_sed" $HOSTFILE) )
- _vyatta_hostfile_lastmod=$curmod
- fi
- printf "%s\n" ${_vyatta_symbolic_hosts[@]} # ${_vyatta_hosts[@]} $* # commenting this untill ipv6 is supported
-}
-
-### Local Variables:
-### mode: shell-script
-### End: