20 lines
498 B
Plaintext
20 lines
498 B
Plaintext
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
|