mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
systemd: rework machine-idd service
- always set a *valid* machine-id - start machine-id.service before journald
This commit is contained in:
@@ -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
|
||||
MACHINEID=`echo $MAC_ADRESS | md5sum | cut -f1 -d" "`
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user