From: Hugo Villeneuve Date: Tue, 17 Jun 2014 02:21:18 +0000 (-0400) Subject: Add generic fcron.d directory X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=0341d0fe49135765f7ff0ca5581a353e5f61529a;p=hvlinux.git Add generic fcron.d directory Add run-fstrim fcron script. --- diff --git a/stage3/misc/fcron.d/run-fstrim b/stage3/misc/fcron.d/run-fstrim new file mode 100644 index 0000000..54e5f5d --- /dev/null +++ b/stage3/misc/fcron.d/run-fstrim @@ -0,0 +1,3 @@ +# &options min hrs day-of-month month day-of-week command +# Run fstrim command once a week at 1:05 +&mail(false) 05 01 * * 1 /usr/local/bin/run-fstrim.sh diff --git a/stage3/misc/fcron.d/update-pciids b/stage3/misc/fcron.d/update-pciids new file mode 100644 index 0000000..c297fd0 --- /dev/null +++ b/stage3/misc/fcron.d/update-pciids @@ -0,0 +1,3 @@ +# &options min hrs day-of-month month day-of-week command +# Update PCI IDs database every day at 4:05 +&mail(false) 05 04 * * * /usr/sbin/update-pciids diff --git a/stage3/misc/fcron.d/update-usbids b/stage3/misc/fcron.d/update-usbids new file mode 100644 index 0000000..ffd2af4 --- /dev/null +++ b/stage3/misc/fcron.d/update-usbids @@ -0,0 +1,4 @@ +# &options min hrs day-of-month month day-of-week command +# Update USB IDs database every day at 4:05 +&mail(false) 05 04 * * * /usr/sbin/update-usbids.sh + diff --git a/stage3/misc/update-pciids b/stage3/misc/update-pciids deleted file mode 100644 index c297fd0..0000000 --- a/stage3/misc/update-pciids +++ /dev/null @@ -1,3 +0,0 @@ -# &options min hrs day-of-month month day-of-week command -# Update PCI IDs database every day at 4:05 -&mail(false) 05 04 * * * /usr/sbin/update-pciids diff --git a/stage3/misc/update-usbids b/stage3/misc/update-usbids deleted file mode 100644 index ffd2af4..0000000 --- a/stage3/misc/update-usbids +++ /dev/null @@ -1,4 +0,0 @@ -# &options min hrs day-of-month month day-of-week command -# Update USB IDs database every day at 4:05 -&mail(false) 05 04 * * * /usr/sbin/update-usbids.sh - diff --git a/stage3/pkg/fcron b/stage3/pkg/fcron index 1397f71..745420b 100644 --- a/stage3/pkg/fcron +++ b/stage3/pkg/fcron @@ -86,4 +86,6 @@ EOF # script-name start stop bootscript_add_rcsysinit fcron 95 84 + + install -v -m644 ${SCRDIR}/misc/fcron.d/* /etc/fcron/fcron.d } diff --git a/stage3/pkg/pciutils b/stage3/pkg/pciutils index 943f0de..429b0dc 100644 --- a/stage3/pkg/pciutils +++ b/stage3/pkg/pciutils @@ -20,8 +20,3 @@ hvbuild() ZLIB=no \ install install-lib } - -hvbuild_post() -{ - install -v -m644 ${SCRDIR}/misc/update-pciids /etc/fcron/fcron.d -} diff --git a/stage3/pkg/usbutils b/stage3/pkg/usbutils deleted file mode 100644 index e98ab51..0000000 --- a/stage3/pkg/usbutils +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -hvbuild_post() -{ - install -v -m644 ${SCRDIR}/misc/update-usbids /etc/fcron/fcron.d -}