/usr/bin/sugar-serial-number-helper is in sugar-session 0.112-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh
A=/sys/class/dmi/id/product_serial
B=/ofw/mfg-data/SN
C=/proc/device-tree/mfg-data/SN
if [ -e $A ]; then
read value < $A
echo "$value"
elif [ -e $B ]; then
read value < $B
echo "$value"
elif [ -e $C ]; then
read value < $C
echo "$value"
else
echo unknown
fi
|