Add a common uci-defaults file
This commit is contained in:
parent
c5d9f4329a
commit
ba36504d3c
|
@ -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
2
uci_defaults
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
|
||||
/sbin/service sshd restart
|
Loading…
Reference in New Issue
Block a user