mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
systemd: rework machine-idd service
- always set a *valid* machine-id - start machine-id.service before journald
This commit is contained in:
parent
2c835f85fd
commit
260069cca7
@ -34,8 +34,6 @@ elif [ -e "/sys/class/net/wlan0/address" ]; then
|
||||
MAC_ADRESS=`cat /sys/class/net/wlan0/address`
|
||||
fi
|
||||
|
||||
if [ -n "$MAC_ADRESS" ]; then
|
||||
MACHINEID=`echo $MAC_ADRESS | md5sum | cut -f1 -d" "`
|
||||
fi
|
||||
|
||||
echo "$MACHINEID" > /run/machine-id
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=Setup machine-id
|
||||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
Before=systemd-journald.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Loading…
x
Reference in New Issue
Block a user