mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
ODROID-XU4: firstboot: add to restart SSH server at first boot
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
@@ -21,4 +21,17 @@ resize2fs ${rootdev}
|
||||
|
||||
rm -f /etc/ssh/ssh_host* && ssh-keygen -A
|
||||
|
||||
case $(cat /sys/firmware/devicetree/base/model) in
|
||||
"Hardkernel Odroid XU4")
|
||||
need_tweak="true"
|
||||
;;
|
||||
*)
|
||||
need_tweak="false"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "x${need_tweak}" = "xtrue" ]; then
|
||||
service ssh restart
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user