mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00:00
busybox: add dtsoc helper script
This commit is contained in:
parent
a5f1eda331
commit
ecd87898a5
@ -126,6 +126,7 @@ makeinstall_target() {
|
|||||||
cp $PKG_DIR/scripts/createlog $INSTALL/usr/bin/
|
cp $PKG_DIR/scripts/createlog $INSTALL/usr/bin/
|
||||||
cp $PKG_DIR/scripts/dtfile $INSTALL/usr/bin
|
cp $PKG_DIR/scripts/dtfile $INSTALL/usr/bin
|
||||||
cp $PKG_DIR/scripts/dtname $INSTALL/usr/bin
|
cp $PKG_DIR/scripts/dtname $INSTALL/usr/bin
|
||||||
|
cp $PKG_DIR/scripts/dtsoc $INSTALL/usr/bin
|
||||||
cp $PKG_DIR/scripts/lsb_release $INSTALL/usr/bin/
|
cp $PKG_DIR/scripts/lsb_release $INSTALL/usr/bin/
|
||||||
cp $PKG_DIR/scripts/apt-get $INSTALL/usr/bin/
|
cp $PKG_DIR/scripts/apt-get $INSTALL/usr/bin/
|
||||||
cp $PKG_DIR/scripts/sudo $INSTALL/usr/bin/
|
cp $PKG_DIR/scripts/sudo $INSTALL/usr/bin/
|
||||||
|
11
packages/sysutils/busybox/scripts/dtsoc
Executable file
11
packages/sysutils/busybox/scripts/dtsoc
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
COMPATIBLE=$(cat /proc/device-tree/compatible 2>/dev/null | tr -d '\000' | sed -n -e 's/.*\(allwinner\|amlogic\|rockchip\).*/\1/p')
|
||||||
|
|
||||||
|
if [ -n "$COMPATIBLE" ]; then
|
||||||
|
DTNAME=$(cat /proc/device-tree/compatible | cut -f1,2 -d',' | tail -n 1)
|
||||||
|
echo "$DTNAME"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user