mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[package] add dropkey ssh keys and config files to the conffiles section (#2014)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14399 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -26,7 +26,7 @@ keygen() {
|
||||
for keytype in rsa dss; do
|
||||
# check for keys
|
||||
key=dropbear/dropbear_${keytype}_host_key
|
||||
[ -f /tmp/$key -o -f /etc/$key ] || {
|
||||
[ -f /tmp/$key -o -s /etc/$key ] || {
|
||||
# generate missing keys
|
||||
mkdir -p /tmp/dropbear
|
||||
[ -x /usr/bin/dropbearkey ] && {
|
||||
@@ -45,8 +45,8 @@ keygen() {
|
||||
}
|
||||
|
||||
start() {
|
||||
[ -f /etc/dropbear/dropbear_rsa_host_key -a \
|
||||
-f /etc/dropbear/dropbear_dss_host_key ] || keygen
|
||||
[ -s /etc/dropbear/dropbear_rsa_host_key -a \
|
||||
-s /etc/dropbear/dropbear_dss_host_key ] || keygen
|
||||
|
||||
config_load dropbear
|
||||
/usr/sbin/dropbear $DROPBEAR_ARGS
|
||||
|
||||
Reference in New Issue
Block a user