D-Link DNS-323 Scan Server Update for Firmware 1.6

Recently upgraded my DNS-323 to firmware 1.6 because of one of my harddrives never going to sleep. And lo and behold! The firmware upgrade fixes the issue. So I’m one happy camper.

I did encounter two issues, though:

  1. Prolly due to something I did wrong when playing around with the iTunes server a while ago, now the web mgmt. GUI would crash, whenever I clicked on the iTunes Server tab on the advanced configuration page. What solved the issue for me was to delete /mnt/HD_a4/.systemfile/.mt-daapd/.songs.gdb
  2. The other thing was that my scan server setup no longer worked when turning on the scanner after booting the DNS-323. Detection of devices after bootup == hotplug, so that was easy: The hotplug agent had changed, and I needed to generate a new diff file to patch it at startup. The result then is as follows (the lines may run out of the page on the right, just copy/past to your local text editor):

--- /etc/hotplug/usb.agent.orig	2009-04-27 16:54:03.000000000 +0100
+++ /etc/hotplug/usb.agent	2009-04-27 16:54:58.000000000 +0100
@@ -1,6 +1,21 @@
 #!/bin/sh
 #echo "0=$0 1=$1 2=$2 `env`">>/tmp/debug_usbagent
 
+## echo "$ACTION - $PRODUCT - $INTERFACE - $TYPE" >>/opt/tmp/usb.hp.out
+## echo "arg1: $1" >>/opt/tmp/usb.hp.out
+if [ "$PRODUCT" = "4b8/10b/104" ]; then
+    if [ "$ACTION" = "add" ]; then
+##         echo "Detected Scanner, starting scanbuttond" >>/opt/tmp/usb.hp.out
+        PATH=/opt/bin:/opt/sbin:/mnt/HD_a2/fun_plug.d/bin:/mnt/HD_a2/fun_plug.d/sbin:"${PATH}" sh -x /mnt/HD_a2/fun_plug.d/start/05xinetd.sh start ## >>/opt/tmp/usb.hp.out
+        PATH=/opt/bin:/opt/sbin:/mnt/HD_a2/fun_plug.d/bin:/mnt/HD_a2/fun_plug.d/sbin:"${PATH}" sh -x /mnt/HD_a2/fun_plug.d/start/06scanbuttond.sh start ## >>/opt/tmp/usb.hp.out
+    elif [ "$ACTION" = "remove" ]; then
+##         echo "Detected Scanner removal, stopping scanbuttond" >>/opt/tmp/usb.hp.out
+        PATH=/opt/bin:/opt/sbin:/mnt/HD_a2/fun_plug.d/bin:/mnt/HD_a2/fun_plug.d/sbin:"${PATH}" sh -x /mnt/HD_a2/fun_plug.d/start/06scanbuttond.sh stop ## >>/opt/tmp/usb.hp.out
+        PATH=/opt/bin:/opt/sbin:/mnt/HD_a2/fun_plug.d/bin:/mnt/HD_a2/fun_plug.d/sbin:"${PATH}" sh -x /mnt/HD_a2/fun_plug.d/start/05xinetd.sh stop ## >>/opt/tmp/usb.hp.out
+    fi
+fi
+
+
 echo "PRINTER" > /tmp/UpdateOLED_USB_dev
 if [ "$1" = "add" ]; then
   if [ "$ACTION" = "" ]; then

Advertisements
Tagged , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: