summaryrefslogtreecommitdiff
path: root/system/grub2/doinst.sh
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@yahoo.com>2010-07-10 10:27:02 -0400
committerErik Hanson <erik@slackbuilds.org>2010-07-11 10:28:11 -0500
commit03daf0605a90e78f1568ebb4a97d971e2a11a727 (patch)
tree9a6796374464179747980ba2eae1dfb9747b0d16 /system/grub2/doinst.sh
parent1ae2e43b3812edf05daf3cbcc97335f889389bb1 (diff)
downloadslackbuilds-03daf0605a90e78f1568ebb4a97d971e2a11a727.tar.gz
system/grub2: Added (GRand Unified Bootloader)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/grub2/doinst.sh')
-rw-r--r--system/grub2/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/grub2/doinst.sh b/system/grub2/doinst.sh
new file mode 100644
index 0000000000..6e0020b4b9
--- /dev/null
+++ b/system/grub2/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...
+}
+
+