#!/bin/sh
-set -x
+set -xe
# librecmc 1.5.1 is missing nfs-kernel-server and screen
source /etc/os-release
if [ "$ID" == librecmc ] && [ "$VERSION" == v1.5.1-core ]; then
opkg update
opkg install bash
fi
+
+if [ -f /root/err ]; then
+ mkdir -p /usr/local/lib
+ mv /root/err /usr/local/lib
+fi
+
+# this isnt used anymore
export HOME_DOMAIN=$1
shift
wrt-setup-local "$@"