aboutsummaryrefslogtreecommitdiff
path: root/net/adblock/files/etc/adblock/samples/rc.local.sample
diff options
context:
space:
mode:
Diffstat (limited to 'net/adblock/files/etc/adblock/samples/rc.local.sample')
-rw-r--r--net/adblock/files/etc/adblock/samples/rc.local.sample26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/adblock/files/etc/adblock/samples/rc.local.sample b/net/adblock/files/etc/adblock/samples/rc.local.sample
new file mode 100644
index 000000000..890779e58
--- /dev/null
+++ b/net/adblock/files/etc/adblock/samples/rc.local.sample
@@ -0,0 +1,26 @@
+# sample startup script
+# configuration found in /etc/rc.local
+#
+
+# start logging
+#
+/usr/bin/logger -t rc.local "start rc.local processing"
+
+# set home directory
+#
+export HOME=/root
+
+# resize /tmp partition to 256 MB
+#
+/usr/bin/logger -t rc.local "resize /tmp partition to 256 MB"
+mount tmpfs /tmp -t tmpfs -o remount,nosuid,nodev,noatime,size=256M
+
+# start adblock script
+#
+/usr/bin/logger -t rc.local "start adblock script"
+/usr/bin/adblock-update.sh >/dev/null 2>&1
+
+# write log and exit
+#
+/usr/bin/logger -t rc.local "finish rc.local processing"
+exit 0