(un)load modules for LSM9DS1 depending on the state of the three hardware kill switches
the following files have been added:
/usr/sbin/librem5-lsm9ds1-modules.sh load/unload lsm9ds1 modules depending on the state of the three hardware kill switches (hks)
/etc/modprobe.d/librem5-lsm9ds1.conf do not automatically load lsm9ds1 modules to avoid errors when starting the phone with all three hks enabled
/lib/systemd/librem5-load-lsm9ds1.service oneshot service to run librem5-lsm9ds1-modules.sh to load the lsm9ds1 modules if at least one hks is not enabled
/lib/udev/rules.d/85-librem5-lsm9ds1.rules run librem5-lsm9ds1-modules.sh each time a hks is altered
should solve: linux#436 (closed) and linux#431 (closed)