Author Topic: Gps Script [my First Script] Cardctl Resume  (Read 1372 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Gps Script [my First Script] Cardctl Resume
« on: March 17, 2006, 03:55:01 am »
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
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers