From ba36504d3c277f2f27971e5dfc00fa5172656a96 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Thu, 9 Feb 2023 22:20:59 +0200 Subject: [PATCH] Add a common uci-defaults file --- .buildbot/openwrt/build.sh | 5 +---- uci_defaults | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 uci_defaults diff --git a/.buildbot/openwrt/build.sh b/.buildbot/openwrt/build.sh index 5ebd28f..518fcf5 100755 --- a/.buildbot/openwrt/build.sh +++ b/.buildbot/openwrt/build.sh @@ -53,10 +53,7 @@ echo "CONFIG_TARGET_ROOTFS_EXT4FS=n" >> .config mkdir -p files/root/.ssh cp ${pwd}/authorized_keys files/root/.ssh/ mkdir -p files/etc/uci-defaults -cat << "EOF" > files/etc/uci-defaults/99-custom -echo "PasswordAuthentication no" >> /etc/ssh/sshd_config -/sbin/service sshd restart -EOF +cp ${pwd}/uci_defaults files/etc/uci-defaults/99-custom PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \ kmod-usb-audio kmod-usb-net-rtl8152 \ diff --git a/uci_defaults b/uci_defaults new file mode 100644 index 0000000..2e6727a --- /dev/null +++ b/uci_defaults @@ -0,0 +1,2 @@ +echo "PasswordAuthentication no" >> /etc/ssh/sshd_config +/sbin/service sshd restart \ No newline at end of file -- 2.45.1