summaryrefslogtreecommitdiffstats
path: root/etc/rc.dyndns.storecache
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.dyndns.storecache')
-rwxr-xr-xetc/rc.dyndns.storecache8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc.dyndns.storecache b/etc/rc.dyndns.storecache
new file mode 100755
index 0000000..180662e
--- /dev/null
+++ b/etc/rc.dyndns.storecache
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# copy cache file to /conf for permanent storage
+/sbin/umount -f /cf
+/sbin/mount -w -o noatime /cf
+/bin/cp /var/db/ez-ipupdate.cache /conf
+/sbin/umount -f /cf
+/sbin/mount -r /cf
OpenPOWER on IntegriCloud