Put common uci-defaults file in the repo #18
|
@ -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
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