17 lines
288 B
Bash
Executable File
17 lines
288 B
Bash
Executable File
#!/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
|
|
|
|
if [ ! -e /etc/ssh/ssh_host_rsa_key ]; then
|
|
# Wait a while to gather entropy
|
|
sleep 60 && dpkg-reconfigure openssh-server &
|
|
fi
|
|
|
|
exit 0
|