dropbear.failsafe 322 B

123456789
  1. #!/bin/sh
  2. failsafe_dropbear () {
  3. dropbearkey -t rsa -s 1024 -f /tmp/dropbear_rsa_failsafe_host_key
  4. dropbearkey -t ed25519 -f /tmp/dropbear_ed25519_failsafe_host_key
  5. dropbear -r /tmp/dropbear_rsa_failsafe_host_key -r /tmp/dropbear_ed25519_failsafe_host_key <> /dev/null 2>&1
  6. }
  7. boot_hook_add failsafe failsafe_dropbear