parent
283a1a680c
commit
885575fe0e
|
@ -2,26 +2,26 @@
|
||||||
|
|
||||||
fluxion_check_ap() {
|
fluxion_check_ap() {
|
||||||
readonly SUPPORT_AP=$(sed -n -e "$(echo $(($1+4)))p" devices.xml | cut -d ">" -f2 | cut -d "<" -f1)
|
readonly SUPPORT_AP=$(sed -n -e "$(echo $(($1+4)))p" devices.xml | cut -d ">" -f2 | cut -d "<" -f1)
|
||||||
if [ "$SUPPORT_AP" == "n" ];then
|
echo "$SUPPORT_AP"
|
||||||
echo "false"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxion_check_mo() {
|
fluxion_check_mo() {
|
||||||
readonly SUPPORT_MO=$(sed -n -e "$(echo $(($1+6)))p" devices.xml | cut -d ">" -f2 | cut -d "<" -f1)
|
readonly SUPPORT_MO=$(sed -n -e "$(echo $(($1+6)))p" devices.xml | cut -d ">" -f2 | cut -d "<" -f1)
|
||||||
if [ "$SUPPORT_MO" == "n" ];then
|
echo "$SUPPORT_MO"
|
||||||
echo "false"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# first identifier
|
# first identifier
|
||||||
fluxion_check_chipset() {
|
fluxion_check_chipset() {
|
||||||
declare -r LINE=$(grep "$1" devices.xml -n | head -n 1 | cut -d ":" -f1)
|
declare -r LINE=$(grep "$1" devices.xml -n | head -n 1 | cut -d ":" -f1)
|
||||||
|
|
||||||
if [ "$(fluxion_check_ap "$LINE")" == "false" ] || [ "$(fluxion_check_mo "$LINE")" == "false" ];then
|
if [ "$(fluxion_check_ap "$LINE")" == "n" ] || [ "$(fluxion_check_mo "$LINE")" == "n" ];then
|
||||||
echo "false"
|
echo "false"
|
||||||
else
|
else
|
||||||
echo "true"
|
if [ "$(fluxion_check_ap "$LINE")" == "?" ] || [ "$(fluxion_check_mo "$LINE")" == "?" ];then
|
||||||
|
echo "Chipset not in list"
|
||||||
|
else
|
||||||
|
echo "true"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue