summaryrefslogtreecommitdiffstats
path: root/system/atarisio/doinst.kernel
blob: 25a5af3ff04b4287a0107ac6e41b559be57991ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
chroot . /sbin/depmod -a 2>/dev/null

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/modprobe.d/atarisio.conf.new

if [ -e etc/rc.d/rc.modules.local ]; then
  if ! grep -q '# AtariSIO' etc/rc.d/rc.modules.local; then
    echo "/sbin/modprobe atarisio        # AtariSIO (added by SBo atarisio package)" >> etc/rc.d/rc.modules.local
  fi
fi