static usb ethnet addresses
[automated-distro-installer] / wrt-init
index ebfac9c276f1eeaba95551fda2039ee210ce6987..45425b6923817170ca920fb78a7985b217999893 100755 (executable)
--- a/wrt-init
+++ b/wrt-init
@@ -1,5 +1,22 @@
 #!/bin/sh
-set -x
+# 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
@@ -13,6 +30,13 @@ 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 "$@"