From 5238ad5a0c4a9e1c8cd036f5de4055e39bd71297 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Apr 2011 09:09:27 +0200 Subject: added debootstrap stuff Signed-off-by: Manuel Traut --- beagle/debian-rfs/etc/cron.daily/passwd | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 beagle/debian-rfs/etc/cron.daily/passwd (limited to 'beagle/debian-rfs/etc/cron.daily/passwd') diff --git a/beagle/debian-rfs/etc/cron.daily/passwd b/beagle/debian-rfs/etc/cron.daily/passwd new file mode 100755 index 0000000..4778bf0 --- /dev/null +++ b/beagle/debian-rfs/etc/cron.daily/passwd @@ -0,0 +1,9 @@ +#!/bin/sh + +cd /var/backups || exit 0 + +for FILE in passwd group shadow gshadow; do + test -f /etc/$FILE || continue + cmp -s $FILE.bak /etc/$FILE && continue + cp -p /etc/$FILE $FILE.bak && chmod 600 $FILE.bak +done -- cgit v1.2.3