Command "activate" within a script: Error

Non release banter
Kulle
Warlord
Warlord
Posts: 642
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Command "activate" within a script: Error

Post#1 by Kulle » 29 Aug 2024, 08:52

the activate command within a script does not function correctly

1.) Module buici-clock in the modules directory
works

2.) Module buici-clock in the apps directory
Double-click on the module ==> Module works

3.) Module in the apps directory, and script run.sh also in this directory.
The command in the script
echo toor | sudo -S activate buici-clock_0.4.9.4+nmu2_amd64.xzm
does not work.

Error message: module is not valid module

I then have to close the window manually, and the module is then correctly activated and works.

How can I ensure that this error message does not appear,
and that I don't have to intervene manually?
Thank you very much

reisub
White ninja
White ninja
Posts: 14
Joined: 18 Oct 2016, 16:27
Distribution: 3.2rc3
Location: America

Command "activate" within a script: Error

Post#2 by reisub » 29 Aug 2024, 13:11

Try putting quotes around the module's name or specifying the module's name with a ? where the + sign is.

Kulle
Warlord
Warlord
Posts: 642
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Command "activate" within a script: Error

Post#3 by Kulle » 29 Aug 2024, 14:25

Hi reisub,
I have tried your suggestions. no success.
then I renamed the module to clock.xzm.
Also no success.
The error has remained !
And now ?!

beny
Full of knowledge
Full of knowledge
Posts: 2201
Joined: 02 Jan 2011, 11:33
Location: italy

Command "activate" within a script: Error

Post#4 by beny » 29 Aug 2024, 15:30

guest@porteus:/mnt/sdh1/porteus/optional$ echo toor | sudo -s activate kodi-21.0-7-x86_64.xzm
Password:
Updating shared library links: /sbin/ldconfig
guest@porteus:/mnt/sdh1/porteus/optional$

hi maybe the script have to run into the packages directory,if you add the guest user to sudo you don't need to write root password,but as usual i can go wrong on this ....

reisub
White ninja
White ninja
Posts: 14
Joined: 18 Oct 2016, 16:27
Distribution: 3.2rc3
Location: America

Command "activate" within a script: Error

Post#5 by reisub » 29 Aug 2024, 22:23

Thoughts: Put the clock.xzm in the /modules directory, it should load automatically when you boot. Another option if you want the clock.xzm to be in a different directory use the boot parm extramod= cheatcode pointing to the other directory.

beny
Full of knowledge
Full of knowledge
Posts: 2201
Joined: 02 Jan 2011, 11:33
Location: italy

Command "activate" within a script: Error

Post#6 by beny » 29 Aug 2024, 22:34

hi, the kodi package is located in optional directory,not modules,maybe the -s after sudo instead of -S

Post Reply