systemd: ensure /storage/.cache exists before writing machine-id

This commit is contained in:
chewitt 2016-06-06 12:34:55 +04:00
parent fbb25f46f9
commit a08fd943ba

View File

@ -36,6 +36,7 @@ fi
if [ -z "$MACHINEID" ]; then
MACHINEID=`echo $MAC_ADDRESS | md5sum | cut -f1 -d" "`
mkdir -p /storage/.cache
fi
echo "$MACHINEID" > /storage/.cache/machine-id