From e92c9cbcbe4fcfbcb69d8b8389cb21e82e0c929f Mon Sep 17 00:00:00 2001 From: "Menno E. Duursma" Date: Tue, 11 May 2010 15:18:46 +0200 Subject: system/tiger: Initial import --- system/tiger/doinst.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 system/tiger/doinst.sh (limited to 'system/tiger/doinst.sh') diff --git a/system/tiger/doinst.sh b/system/tiger/doinst.sh new file mode 100644 index 0000000000..71e967245c --- /dev/null +++ b/system/tiger/doinst.sh @@ -0,0 +1,20 @@ +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +# Try not to mess over any costum settings +config etc/tiger/cronrc.new +config etc/tiger/tigerrc.new +config usr/share/tiger/initdefs.new +config usr/share/tiger/check.tbl.new +config usr/share/tiger/syslist.new +config usr/share/tiger/config.new -- cgit v1.2.3