--- /dev/null
+#!/bin/sh
+
+if [ "${PRODUCT:0:8}" = "3eb/204b" ]; then
+ logger "CUL: ${ACTION} ${PRODUCT}"
+
+ case "$ACTION" in
+ add)
+ if [ "`pidof culd`" = "" ]; then
+ logger "Starting culd"
+ /usr/sbin/culd &
+ fi
+ ;;
+ remove)
+ if [ "`pidof culd`" != "" ]; then
+ logger "Stopping culd"
+ killall culd
+ killall socat
+ fi
+ ;;
+ esac
+fi
--- /dev/null
+#!/bin/sh
+
+DEVICE=/dev/ttyACM0,b9600
+PORT=2323
+#OPTIONS="-ly -lh"
+#OPTIONS="-v -x"
+
+while true; do
+ echo "Listening on port ${PORT} for new connection requests"
+ socat ${OPTIONS} "${DEVICE},echo=0" "TCP-LISTEN:${PORT},reuseaddr"
+done