Search found 33 matches

by TheTroll
Thu Oct 08, 2015 9:32 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

But the solution to run oscam as "app" seems fine as well, don't you think ?
by TheTroll
Thu Oct 08, 2015 9:29 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

oh ok :)
better solution

same thing goes for cmd_on i guess ?
by TheTroll
Thu Oct 08, 2015 9:26 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

Here is how i fixed it :

change
$OSCAM_DIR/$BUILD -b -c $OSCAM_DIR -w 0
to
su app -c "$OSCAM_DIR/$BUILD -b -c $OSCAM_DIR -w 0"
in init script
and
chown app:app -R /mnt/opt/privateer/usr/bin/oscam/
by TheTroll
Thu Oct 08, 2015 9:22 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

Yeah this is very bad :) cmd_on runs oscam as "app" so all "root" oscam conf files are not editable etc ...
by TheTroll
Thu Oct 08, 2015 9:18 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

Ok I know why :)

When started from /mnt/etc/init.d, oscam is started as root.
But the script is invoked as "app" !

How do you manage that ?
by TheTroll
Thu Oct 08, 2015 9:12 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

Yes i could try that :)
by TheTroll
Thu Oct 08, 2015 9:00 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

One think a little bit strange though.
The very first call to the off.sh script does not kill oscam.
But if i kill it manually, on.sh and off.sh works as expected.

Have you noticed this ?
by TheTroll
Thu Oct 08, 2015 7:28 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

Now it works :) thx!
by TheTroll
Thu Oct 08, 2015 4:47 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

Nice :)
Anyway, i ll tell you tonight if you strncpy works!
Thanks
by TheTroll
Thu Oct 08, 2015 4:42 pm
Forum: [F] Software
Topic: [App] libSoftPowerOff D/E/F/H
Replies: 253
Views: 220072

Re: [App] libSoftPowerOff D/E/F/H

I have nobody at home anymore to power-on the tv after a hard power off :)
Do you have a remote solution to rehook or reboot to power-on ?

Go to advanced search