2016-04-26 21:26:33 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
depmod -a
|
2016-04-29 14:31:26 +00:00
|
|
|
|
|
|
|
DATA_PART=/dev/mmcblk1p3
|
|
|
|
if [ ! -e $DATA_PART ]; then
|
|
|
|
DATA_PART=/dev/mmcblk0p3
|
|
|
|
fi
|
|
|
|
modprobe g_file_storage file=$DATA_PART
|
2016-04-26 21:26:33 +00:00
|
|
|
|
2017-03-25 20:31:35 +00:00
|
|
|
if [ ! -e /etc/ssh/ssh_host_rsa_key ]; then
|
|
|
|
# Wait a while to gather entropy
|
|
|
|
sleep 60 && dpkg-reconfigure openssh-server &
|
|
|
|
fi
|
|
|
|
|
2016-04-26 21:26:33 +00:00
|
|
|
exit 0
|