Skip to content

Commit

Permalink
mixin changes for sensors ivi
Browse files Browse the repository at this point in the history
Signed-off-by: Ranjan, Rajani <[email protected]>
  • Loading branch information
RajaniRanjan committed Aug 25, 2023
1 parent a4197c8 commit c10af6c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion groups/sensors/mediation/auto_hal.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@ value=`grep -i ipaddr $GUEST_AAF_CONFIG | cut -d ':' -f2`
setprop vendor.intel.ipaddr $value
}
update_ipaddress

update_deviceinfo() {
case "$(cat /sys/class/dmi/id/chassis_vendor | head -1)" in
QEMU)
setprop vendor.virtual.device "qemu"
;;
Oracle)
setprop vendor.virtual.device "virtual-box"
;;
*)
setprop vendor.virtual.device "bare-metal"
;;
esac
}
update_deviceinfo

0 comments on commit c10af6c

Please sign in to comment.