minor fixes and dns
[automated-distro-installer] / wrt-init
diff --git a/wrt-init b/wrt-init
new file mode 100755 (executable)
index 0000000..ebfac9c
--- /dev/null
+++ b/wrt-init
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -x
+# librecmc 1.5.1 is missing nfs-kernel-server and screen
+source /etc/os-release
+if [ "$ID" == librecmc ] && [ "$VERSION" == v1.5.1-core ]; then
+  cat >/etc/opkg/customfeeds.conf <<'EOF'
+src/gz openwrt_packages http://downloads.openwrt.org/releases/19.07.3/packages/mips_24kc/packages
+fi
+EOF
+fi
+
+if ! opkg list-installed|grep bash; then
+  opkg update
+  opkg install bash
+fi
+export HOME_DOMAIN=$1
+shift
+wrt-setup-local "$@"