summaryrefslogtreecommitdiffstats
path: root/system/atarisio/doinst.kernel
diff options
context:
space:
mode:
Diffstat (limited to 'system/atarisio/doinst.kernel')
-rw-r--r--system/atarisio/doinst.kernel19
1 files changed, 19 insertions, 0 deletions
diff --git a/system/atarisio/doinst.kernel b/system/atarisio/doinst.kernel
new file mode 100644
index 0000000000..25a5af3ff0
--- /dev/null
+++ b/system/atarisio/doinst.kernel
@@ -0,0 +1,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