okreader/files/rc.local

17 lines
288 B
Plaintext
Raw Normal View History

#!/bin/sh -e
depmod -a
DATA_PART=/dev/mmcblk1p3
if [ ! -e $DATA_PART ]; then
DATA_PART=/dev/mmcblk0p3
fi
modprobe g_file_storage file=$DATA_PART
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
exit 0