diff options
author | Michales Michaloudes <korgie@gmail.com> | 2010-05-11 22:54:28 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:54:28 +0200 |
commit | 37274113c3478150aab06ce3db914f6477f4fda7 (patch) | |
tree | ae57732fd32c7a1663d70ac715d51ecfb1e30ec3 /misc/biosdisk/doinst.sh | |
parent | a630d7216dbec08a4e30b1a981594428b4a90048 (diff) | |
download | slackbuilds-37274113c3478150aab06ce3db914f6477f4fda7.tar.gz |
misc/biosdisk: Added to 12.1 repository
Diffstat (limited to 'misc/biosdisk/doinst.sh')
-rw-r--r-- | misc/biosdisk/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/biosdisk/doinst.sh b/misc/biosdisk/doinst.sh new file mode 100644 index 0000000000..c193537931 --- /dev/null +++ b/misc/biosdisk/doinst.sh @@ -0,0 +1,14 @@ +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... +} + +config etc/biosdisk.conf.new |