summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/anonet_map/map
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2020-04-02 08:15:12 +0000
committerepoch <epoch@hack.thebackupbox.net>2020-04-02 08:15:12 +0000
commit9004c4a5ff7bfd0067fa616693d84b8afe69d9f4 (patch)
tree1bf16e628be60c84494022b6fc3fdeccddc2fca9 /share/hackvr/examples/anonet_map/map
parentf1840729881fee95685cc8359434e9e8ffa99206 (diff)
downloadhackvr-9004c4a5ff7bfd0067fa616693d84b8afe69d9f4.tar.gz
hackvr-9004c4a5ff7bfd0067fa616693d84b8afe69d9f4.zip
added caching to map
Diffstat (limited to 'share/hackvr/examples/anonet_map/map')
-rwxr-xr-xshare/hackvr/examples/anonet_map/map8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hackvr/examples/anonet_map/map b/share/hackvr/examples/anonet_map/map
index e983590..4dbbdbd 100755
--- a/share/hackvr/examples/anonet_map/map
+++ b/share/hackvr/examples/anonet_map/map
@@ -1,15 +1,15 @@
#!/bin/bash
-paths="$(ncat --recv-only 21.41.41.1 64777 | sort | uniq | tee /var/cache/hackvr/anonet_data.new)"
+paths="$(ncat --recv-only 21.41.41.1 64777 | sort | uniq | tee ${PREFIX}/var/cache/hackvr/anonet_data.new)"
-MAP=/var/cache/hackvr/anonet_map.hackvr
+MAP=${PREFIX}/var/cache/hackvr/anonet_map.hackvr
#see if the data actually changed before regenerating this shit...
-if cmp /var/cache/hackvr/anonet_data.new /var/cache/hackvr/anonet_data.old ; then
+if cmp ${PREFIX}/var/cache/hackvr/anonet_data.new ${PREFIX}/var/cache/hackvr/anonet_data.old ; then
cat $MAP
exit 0
fi
-mv /var/cache/hackvr/anonet_data.new /var/cache/hackvr/anonet_data.old
+mv ${PREFIX}/var/cache/hackvr/anonet_data.new ${PREFIX}/var/cache/hackvr/anonet_data.old
> $MAP