mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #425 from chewitt/machineid_dir
systemd: ensure /storage/.cache exists before writing machine-id
This commit is contained in:
commit
f59ff67c76
@ -36,6 +36,7 @@ fi
|
|||||||
|
|
||||||
if [ -z "$MACHINEID" ]; then
|
if [ -z "$MACHINEID" ]; then
|
||||||
MACHINEID=`echo $MAC_ADDRESS | md5sum | cut -f1 -d" "`
|
MACHINEID=`echo $MAC_ADDRESS | md5sum | cut -f1 -d" "`
|
||||||
|
mkdir -p /storage/.cache
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$MACHINEID" > /storage/.cache/machine-id
|
echo "$MACHINEID" > /storage/.cache/machine-id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user