Read keystrokes from LIRC dongle

This forum is for supported devices using an ARMv7 Freescale SoC.

Re: Read keystrokes from LIRC dongle

Postby moonman » Wed Apr 29, 2015 3:05 am

I think it needs to be
$this->bbcode_second_pass_code('', 'ExecStart=/usr/bin/bash /usr/bin/irswitch')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Read keystrokes from LIRC dongle

Postby phibon » Wed Apr 29, 2015 6:21 am

$this->bbcode_second_pass_quote('', 'I') think it needs to be
$this->bbcode_second_pass_code('', '
ExecStart=/usr/bin/bash /usr/bin/irswitch
')


Hmm, stil no joy.

Also tried it with :

$this->bbcode_second_pass_code('', '
ExecStart=/bin/bash /usr/bin/irswitch
')

since bash is located in /bin but that does not work either.

I guess it is not necessary to put /bin/bash in the ExecStart line because when I check the status of the service it lists it anyway:

$this->bbcode_second_pass_code('', '
● irswitch.service - IR Switch - Switch relais on / off
Loaded: loaded (/usr/lib/systemd/system/irswitch.service; enabled; vendor preset: disabled)
Active: active (running) since wo 2015-04-29 08:14:42 CEST; 19s ago
Main PID: 13250 (bash)
CGroup: /system.slice/irswitch.service
└─13250 /bin/bash /usr/bin/irswitch
')
phibon
 
Posts: 6
Joined: Tue Apr 28, 2015 4:24 pm

Re: Read keystrokes from LIRC dongle

Postby moonman » Wed Apr 29, 2015 7:03 am

/bin is a symlink to /usr/bin

I believe it used to be that you had to call bash explicitly. Maybe it isn't the case anymore.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Previous

Return to Freescale

Who is online

Users browsing this forum: No registered users and 18 guests