summaryrefslogtreecommitdiffstats
path: root/system/slapt-src/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/slapt-src/doinst.sh')
-rw-r--r--system/slapt-src/doinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/slapt-src/doinst.sh b/system/slapt-src/doinst.sh
new file mode 100644
index 0000000000..3892c91d9d
--- /dev/null
+++ b/system/slapt-src/doinst.sh
@@ -0,0 +1,9 @@
+if [ ! -d etc/slapt-get ]; then
+mkdir -p etc/slapt-get
+fi
+
+if [ ! -f etc/slapt-get/slapt-srcrc ]; then
+mv -f etc/slapt-get/slapt-srcrc.new etc/slapt-get/slapt-srcrc
+else
+! diff -q etc/slapt-get/slapt-srcrc etc/slapt-get/slapt-srcrc.new >/dev/null 2>&1 || rm etc/slapt-get/slapt-srcrc.new
+fi