The easiest thing to do would be to do this beforehand. There is no conditional checking available within an ini file, since this file is read by other programs and does not of itself do anything. Run from a script and check for the existence of the joystick device, then launch the relevant config. eg. launch.sh # !/bin/bash if [ -f /dev/input/js0] ; then
machinekit ~/configs/myconfig/my-config-with-js.ini
else machinekit ~/configs/myconfig/my-config-without-js.ini fi
On 01/10/18 17:05, Paulo Sherring
wrote:
-- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout. |
- [Machinekit] Conditionally loading a HAL file Paulo Sherring
- Re: [Machinekit] Conditionally loading a HAL fil... schoone...@gmail.com
- [Machinekit] Re: Conditionally loading a HAL fil... Paulo Sherring