Put common uci-defaults file in the repo #18

Merged
PeterSurda merged 1 commits from lee.miller/openwrt:openssh into main 2023-02-10 12:15:15 +01:00
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 mkdir -p files/root/.ssh
cp ${pwd}/authorized_keys files/root/.ssh/ cp ${pwd}/authorized_keys files/root/.ssh/
mkdir -p files/etc/uci-defaults mkdir -p files/etc/uci-defaults
cat << "EOF" > files/etc/uci-defaults/99-custom cp ${pwd}/uci_defaults files/etc/uci-defaults/99-custom
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
/sbin/service sshd restart
EOF
PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \ PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
kmod-usb-audio kmod-usb-net-rtl8152 \ 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