Page 1 of 1

[SOLVED] Adding script or comment to xzm?

Posted: 23 Jul 2023, 11:55
by baloontravel
I have xzm module of android-tools (adb fastboot) with dependencies and permition modifications.
But after activation I need to run
sudo udevadm control --reload-rules
to make permitions work.

Is there a way to execute command after xzm module installs?
Or show notofication.

Adding script or comment to xzm?

Posted: 23 Jul 2023, 14:27
by Ed_P
How are you activating the module baloontravel? Manually or when booting?

Adding script or comment to xzm?

Posted: 23 Jul 2023, 17:39
by baloontravel
I activate module manually.

If there is no way I can use how-to.txt remider file. )

Adding script or comment to xzm?

Posted: 23 Jul 2023, 17:53
by Ed_P
Create a script to activate the module if needed and to execute it if activated. This is what I do for a game:

Code: Select all

#!/bin/sh

OPTIONAL="/mnt/$DRV/porteus5.0/Optional"
if [ ! -d $OPTIONAL ]; then
   OPTIONAL="/mnt/$DRV/Optional"
fi
#set -x;
if [ ! -e /usr/share/applications/frozen-bubble.desktop ]; then
  echo toor | sudo -S activate $OPTIONAL/perl-5*   > /dev/null 2>&1 &
  echo toor | sudo -S activate $OPTIONAL/frozen*   > /dev/null 2>&1 &
  sleep 2
fi
echo
echo "donald wrote: ↑  10 Oct 2021, 06:31"
echo "press F = fullscreen      "
echo "Press ^ to shoot, < > to aim, v for next level"
echo "Press Esc to exit."
read
frozen-bubble  # > /dev/null 2>&1 &
echo 
Create something similar for your module.

Adding script or comment to xzm?

Posted: 23 Jul 2023, 17:55
by beny
hi baloontravel take a look at this link maybe is useful: https://slackware.nl/slakfinder/show.php?pkg=944259

Adding script or comment to xzm?

Posted: 24 Jul 2023, 00:48
by baloontravel
Thanks Ed_P and beny! This is useful.