mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-14 16:12:15 +00:00
Sync firmware changes
This commit is contained in:
@@ -46,7 +46,7 @@ insert_ko() {
|
|||||||
echo isproot /etc/firmware > /dev/ispmid
|
echo isproot /etc/firmware > /dev/ispmid
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -e /sys/module/mhal ]; then
|
if [ ! -e /sys/module/mi_common ]; then
|
||||||
insert_ko
|
insert_ko
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -56,13 +56,14 @@ detect_sensor
|
|||||||
if [ -z "$SENSOR" ]; then
|
if [ -z "$SENSOR" ]; then
|
||||||
echo -e "\n\e[1;31mSensor parameter MISSING\e[0m\n" | logger -s -t OpenIPC
|
echo -e "\n\e[1;31mSensor parameter MISSING\e[0m\n" | logger -s -t OpenIPC
|
||||||
exit 1
|
exit 1
|
||||||
else
|
|
||||||
echo -e "\n\e[1;32mSensor assigned - $SENSOR\e[0m\n" | logger -s -t OpenIPC
|
|
||||||
DRIVER=$(ls /sys/module | grep $SENSOR)
|
|
||||||
if [ -n "$DRIVER" ]; then
|
|
||||||
rmmod $DRIVER
|
|
||||||
fi
|
|
||||||
set_sensor
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DRIVER=$(ls /sys/module | grep $SENSOR)
|
||||||
|
if [ -n "$DRIVER" ]; then
|
||||||
|
rmmod $DRIVER
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\n\e[1;32mSensor assigned - $SENSOR\e[0m\n" | logger -s -t OpenIPC
|
||||||
|
set_sensor
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user