aboutsummaryrefslogtreecommitdiff
path: root/system/slackrepo/doinst.sh
blob: 680f7354b3e2d82dcd7702e639292fe3a2d8a04f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    rm $NEW
  fi
}

config etc/slackrepo/slackrepo_SBo.conf.new
config etc/slackrepo/slackrepo_csb.conf.new
config etc/slackrepo/slackrepo_msb.conf.new
config etc/slackrepo/slackrepo_ponce.conf.new
config etc/sudoers.d/slackrepo.new