1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/qaa/qca-platform-utils/gpio-debug/files/gpio-dump.sh
2022-09-10 05:47:47 +08:00

28 lines
727 B
Bash

: '
/*
* Copyright (c) 2017, 2019 Qualcomm Technologies, Inc.
*
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
*/
'
device=$( cat /tmp/sysinfo/model )
if echo "$device" | grep -q "IPQ40";
then
/usr/sbin/gpio-debug-ipq40xx.sh "$@"
elif echo "$device" | grep -q "IPQ807";
then
/usr/sbin/gpio-debug-ipq807x.sh "$@"
elif echo "$device" | grep -q "IPQ806";
then
/usr/sbin/gpio-debug-ipq806x.sh "$@"
elif echo "$device" | grep -q "IPQ60";
then
/usr/sbin/gpio-debug-ipq6018.sh "$@"
elif echo "$device" | grep -q "IPQ50";
then
/usr/sbin/gpio-debug-ipq5018.sh "$@"
else
echo "Unrecognized Device...\nDevices Supported: ipq40xx,ipq806x,ipq807x,ipq6018,ipq5018..."
fi