OSDN Git Service

init.sh: set ro.serialno from the DMI table
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 8 Jul 2021 14:01:13 +0000 (22:01 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 8 Jul 2021 14:01:13 +0000 (22:01 +0800)
init.sh

diff --git a/init.sh b/init.sh
index 8eb4988..2bd8163 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -27,6 +27,7 @@ function init_misc()
        # device information
        setprop ro.product.manufacturer "$(cat $DMIPATH/sys_vendor)"
        setprop ro.product.model "$PRODUCT"
+       setprop ro.serialno "$(cat $DMIPATH/product_serial)"
 
        # a hack for USB modem
        lsusb | grep 1a8d:1000 && eject