setup_usb_configfs: Make manufacturer and product strings configurable
This commit is contained in:
parent
96439b1828
commit
921d72d282
|
@ -28,10 +28,10 @@ setup_usb_configfs() {
|
||||||
mkdir $CONFIGFS/g1/strings/0x409 || echo " Couldn't create $CONFIGFS/g1/strings/0x409"
|
mkdir $CONFIGFS/g1/strings/0x409 || echo " Couldn't create $CONFIGFS/g1/strings/0x409"
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
echo "Pine64" > "$CONFIGFS/g1/strings/0x409/manufacturer"
|
echo "$MANUFACTURER" > "$CONFIGFS/g1/strings/0x409/manufacturer"
|
||||||
echo "$usb_serialnumber" > "$CONFIGFS/g1/strings/0x409/serialnumber"
|
echo "$usb_serialnumber" > "$CONFIGFS/g1/strings/0x409/serialnumber"
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
echo "PinePhone" > "$CONFIGFS/g1/strings/0x409/product"
|
echo "$PRODUCT" > "$CONFIGFS/g1/strings/0x409/product"
|
||||||
|
|
||||||
# Create rndis/mass_storage function
|
# Create rndis/mass_storage function
|
||||||
mkdir $CONFIGFS/g1/functions/"$usb_rndis_function" \
|
mkdir $CONFIGFS/g1/functions/"$usb_rndis_function" \
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
PLATFORM=pine64-pinebookpro
|
PLATFORM=pine64-pinebookpro
|
||||||
|
MANUFACTURER=Pine64
|
||||||
|
PRODUCT="Pinebook Pro"
|
||||||
EMMC=/dev/mmcblk2
|
EMMC=/dev/mmcblk2
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
PLATFORM=pine64-pinephone
|
PLATFORM=pine64-pinephone
|
||||||
|
MANUFACTURER=Pine64
|
||||||
|
PRODUCT=PinePhone
|
||||||
EMMC=/dev/mmcblk2
|
EMMC=/dev/mmcblk2
|
||||||
SD=/dev/mmcblk0
|
SD=/dev/mmcblk0
|
||||||
LED=pinephone\:red\:user
|
LED=pinephone\:red\:user
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
PLATFORM=pine64-pinetab
|
PLATFORM=pine64-pinetab
|
||||||
|
MANUFACTURER=Pine64
|
||||||
|
PRODUCT=PineTab
|
||||||
EMMC=/dev/mmcblk2
|
EMMC=/dev/mmcblk2
|
||||||
SD=/dev/mmcblk0
|
SD=/dev/mmcblk0
|
||||||
SERIAL_CON=ttyS0
|
SERIAL_CON=ttyS0
|
||||||
|
|
Loading…
Reference in New Issue