diff options
Diffstat (limited to 'beagle/debian-rfs/etc/cron.daily/dpkg')
| -rwxr-xr-x | beagle/debian-rfs/etc/cron.daily/dpkg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/beagle/debian-rfs/etc/cron.daily/dpkg b/beagle/debian-rfs/etc/cron.daily/dpkg new file mode 100755 index 0000000..99f4f6b --- /dev/null +++ b/beagle/debian-rfs/etc/cron.daily/dpkg @@ -0,0 +1,10 @@ +#!/bin/sh + +# Backup the 7 last versions of dpkg's status file +if cd /var/backups ; then + if ! cmp -s dpkg.status.0 /var/lib/dpkg/status ; then + cp -p /var/lib/dpkg/status dpkg.status + savelog -c 7 dpkg.status >/dev/null + fi +fi + |
