Jan Kundrát | b83fe12 | 2017-10-19 15:35:22 +0200 | [diff] [blame] | 1 | [Unit] |
2 | Description=Save the machine-id into U-Boot environment if not set | ||||
3 | |||||
4 | [Service] | ||||
5 | Type=oneshot | ||||
Jan Kundrát | 8929782 | 2021-01-19 21:48:52 +0100 | [diff] [blame] | 6 | RemainAfterExit=yes |
Jan Kundrát | b83fe12 | 2017-10-19 15:35:22 +0200 | [diff] [blame] | 7 | ExecStart=/bin/sh -c 'fw_printenv machineid &>/dev/null || fw_setenv machineid $(cat /etc/machine-id)' |