aboutsummaryrefslogtreecommitdiff
path: root/system/slapt-src/doinst.sh
blob: 3892c91d9d2b4ec2fb80a5cfb65004cb74924544 (plain)
1
2
3
4
5
6
7
8
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