From 0341d0fe49135765f7ff0ca5581a353e5f61529a Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 16 Jun 2014 22:21:18 -0400 Subject: [PATCH] Add generic fcron.d directory Add run-fstrim fcron script. --- stage3/misc/fcron.d/run-fstrim | 3 +++ stage3/misc/{ => fcron.d}/update-pciids | 0 stage3/misc/{ => fcron.d}/update-usbids | 0 stage3/pkg/fcron | 2 ++ stage3/pkg/pciutils | 5 ----- stage3/pkg/usbutils | 6 ------ 6 files changed, 5 insertions(+), 11 deletions(-) create mode 100644 stage3/misc/fcron.d/run-fstrim rename stage3/misc/{ => fcron.d}/update-pciids (100%) rename stage3/misc/{ => fcron.d}/update-usbids (100%) delete mode 100644 stage3/pkg/usbutils 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/update-pciids b/stage3/misc/fcron.d/update-pciids similarity index 100% rename from stage3/misc/update-pciids rename to stage3/misc/fcron.d/update-pciids diff --git a/stage3/misc/update-usbids b/stage3/misc/fcron.d/update-usbids similarity index 100% rename from stage3/misc/update-usbids rename to stage3/misc/fcron.d/update-usbids 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 -} -- 2.20.1