Add a common uci-defaults file

This commit is contained in:
Lee Miller 2023-02-09 22:20:59 +02:00
parent c5d9f4329a
commit ba36504d3c
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 3 additions and 4 deletions

View File

@ -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 \

2
uci_defaults Normal file
View File

@ -0,0 +1,2 @@
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
/sbin/service sshd restart