Skip to content

Commit

Permalink
board/m2k/S21misc: restore ssh authorized_keys from jffs2
Browse files Browse the repository at this point in the history
Sync with PlutoSDR:
Commit 548b393 ("restore ssh authorized_keys from jffs2")

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
  • Loading branch information
mhennerich authored and commodo committed Sep 17, 2020
1 parent adb20ca commit e2a165c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions board/m2k/S21misc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ case "$1" in
# Restore saved password and Dropbear keys
[[ -d /mnt/jffs2/etc ]] && cd /mnt/jffs2/etc && md5sum -s -c password.md5 && cp passwd shadow group /etc
[[ -d /mnt/jffs2/etc/dropbear ]] && cd /mnt/jffs2/etc/dropbear && md5sum -s -c keys.md5 && cp dropbear* /etc/dropbear/
[[ -d /mnt/jffs2/root/.ssh ]] && cd /mnt/jffs2/root/.ssh && md5sum -s -c keys.md5 && mkdir /root/.ssh && cp authorized_keys /root/.ssh
iio_attr -q -d m2k-fabric clk_powerdown 1
handle_calibration_files
;;
Expand Down

0 comments on commit e2a165c

Please sign in to comment.