Help with a script (change cccam.cfg from the blue panel)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Buffon2011
    Newbie
    • Jun 2012
    • 3

    #1

    Help with a script (change cccam.cfg from the blue panel)

    Hi!
    I want to be able to change CCcam.cfg file from the blue panel. To achieve this I have placed two scripts in the /usr/script directory:

    One is called 1.sh and it goes like this:

    Code:
    #!/bin/sh
    
    rm /etc/CCcam.cfg
    cp /etc/CCcam.cfg.1 /etc/CCcam.cfg
    The other is called 2.sh and it's basically the same (only the source file changes):

    Code:
    #!/bin/sh
    
    rm /etc/CCcam.cfg
    cp /etc/CCcam.cfg.2 /etc/CCcam.cfg
    I gave both of them 755 permissions.

    Problem is when I go to the blue panel -> utilities -> user scripts and launch one of the scripts it says:

    Code:
    /bin/sh /usr/script/1_user.sh Not Found!
    exevution halted
    I can't understand what I'm doing wrong. Any help?
    Thanks!!
  • Buffon2011
    Newbie
    • Jun 2012
    • 3

    #2
    Little correction, the scripts are actually named 1_user.sh and 2_user.sh

    Thanks!

    Comment

    • Buffon2011
      Newbie
      • Jun 2012
      • 3

      #3
      Solved using the CCcamswitch plugin.
      But I'm still interested in why my scripts wouldn't work, if anyone has any ideas!

      Comment

      Working...