mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
ssh: Fix install dropbearmulti for some arch
This commit is contained in:
@@ -132,12 +132,14 @@ start_service()
|
||||
{
|
||||
#[ -s /etc/dropbear/dropbear_rsa_host_key ] || keygen
|
||||
rm -f /etc/dropbear/dropbear_rsa_host_key
|
||||
|
||||
[ ! -e $PROG ] && return 1
|
||||
|
||||
if [ ! -e /etc/dropbear/dropbear_ed25519_host_key ]; then
|
||||
$XDIR/dropbear dropbearkey -t ed25519 -f /etc/dropbear/dropbear_ed25519_host_key 0<&- 2>&- >&-
|
||||
$PROG dropbearkey -t ed25519 -f /etc/dropbear/dropbear_ed25519_host_key 0<&- 2>&- >&-
|
||||
fi
|
||||
if [ ! -e /etc/dropbear/dropbear_ecdsa_host_key ]; then
|
||||
$XDIR/dropbear dropbearkey -t ecdsa -f /etc/dropbear/dropbear_ecdsa_host_key 0<&- 2>&- >&-
|
||||
$PROG dropbearkey -t ecdsa -f /etc/dropbear/dropbear_ecdsa_host_key 0<&- 2>&- >&-
|
||||
fi
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
@@ -8,6 +8,8 @@ if [ ! -d /etc/dropbear ]; then
|
||||
chmod 0700 /etc/dropbear
|
||||
fi
|
||||
|
||||
[ ! -e $XDIR/dropbear ] && return 1
|
||||
|
||||
kill -9 `pgrep dropbear` &>/dev/null
|
||||
rm -f /etc/dropbear/dropbear_rsa_host_key
|
||||
rm -f /etc/init.d/dropbear
|
||||
|
||||
+1
-1
@@ -1229,7 +1229,7 @@ class Gateway():
|
||||
print(f'ARCH = {arch}')
|
||||
arch_suffix = None
|
||||
if arch.startswith('arm_'):
|
||||
arch_suffix = '_armv7a'
|
||||
arch_suffix = '_armv7a' if 'neon-vfp' in arch else '_armv5'
|
||||
if arch.startswith('aarch64'):
|
||||
arch_suffix = '_arm64'
|
||||
if arch.startswith('mips'):
|
||||
|
||||
Reference in New Issue
Block a user