X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=wrt-init;fp=wrt-init;h=ebfac9c276f1eeaba95551fda2039ee210ce6987;hb=e5fc90391646ea35b06250a90ad3aa3c1c2516dc;hp=0000000000000000000000000000000000000000;hpb=845c2b9e9e7e25b3dfa3d7f750d0acae0e50caf4;p=automated-distro-installer diff --git a/wrt-init b/wrt-init new file mode 100755 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 "$@"