openwrt/defaults/50-dropbear

13 lines
260 B
Plaintext

VERSION=1
[ "$(uci -q get defaults.dropbear)" -ge "$VERSION" ] && exit 0
# save version
/sbin/uci set defaults.dropbear="$VERSION"
uci -q batch << EOF
dropbear.@dropbear[0].PasswordAuth='off'
dropbear.@dropbear[0].RootPasswordAuth='off'
commit dropbear
EOF