#!/bin/sh # This file is part of Ian Kelling's automated-distro-installer # Copyright (C) 2024 Ian Kelling # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 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 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 if [ -f /root/bash-bear ]; then mkdir -p /usr/local/lib mv /root/bash-bear /usr/local/lib fi # this isnt used anymore export HOME_DOMAIN=$1 shift wrt-setup-local "$@"