I have an Ambicom GPS CF card that always starts as suspended.
I want to be able to click an icon, (when I'm on the road), instead of typing in the console.
I created a very small script with the following: (My 1rst script)
------------------
#! /bin/bash
cardctl resume
------------------
This actually works!
I created a link in the tab setting with an icon.
Now when I insert my GPS card, and click the icon, the GPS starts acquiring without the need to open a terminal.
The problem is, I don't know how to Exit or Close the script.
I tried "exit 0" at the end of my script.
The icon stays in the launch/explode mode.
I can make the icon return to normal by launching another program, but I really want to Exit my script properly.
I also need to have the icon return to it's pre-launch state after the script ends/exits/closes
I know I ask a lot of questions, and I did search for script and exit/close.
Thank you,
Jon