Results 1 to 4 of 4

Thread: Script to run the modeswitch command in boot

  1. #1
    Join Date
    Apr 2009
    Location
    Mangalore India
    Beans
    840
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Script to run the modeswitch command in boot

    Hi
    I am having one Huawei EC156 modem for my wireless broadband connection. Everytime when I boot the machine, I have to run the following commands in the terminal. The commands are as follows
    Code:
     cd /etc/usb_modeswitch.d
    followed by
    Code:
    sudo usb_modeswitch -I -W -c 12d1\:1505
    I would be very grateful if I can have a launcher which run this script automatically in terminal by clicking on it.

    Thanks in advance
    Last edited by drpjkurian; July 28th, 2011 at 09:07 AM.
    With regards
    Dr Kurian
    Microsoft gives you Windows... Linux gives you the whole house.

  2. #2
    Join Date
    Apr 2009
    Location
    Mangalore India
    Beans
    840
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Script to run the modeswitch command in boot

    bump
    With regards
    Dr Kurian
    Microsoft gives you Windows... Linux gives you the whole house.

  3. #3
    Join Date
    Jul 2011
    Beans
    10

    Re: Script to run the modeswitch command in boot

    Script to run the modeswitch command in boot
    steps
    1.Open the gedit
    2.Type the two commands which you want to run in two separate lines.
    3.save the file with the extension .sh on the disk where ever you want and make this file as executable in the properties
    4.Then right click on the desktop
    5.Create new -link to application
    6.Give your desired name
    7.Go to the properties of the new link on desktop
    8.Go to application
    9.Give the path of file with the extension .sh in the command box
    10.Go to advanced options
    11.Tick the coloumns of run in terminal and run as a different user
    12.Hit ok



    open the link created on the desktop

    type the password if required

    enjoy........
    Last edited by jayadeep; July 28th, 2011 at 04:47 PM.

  4. #4
    Join Date
    Apr 2009
    Location
    Mangalore India
    Beans
    840
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Script to run the modeswitch command in boot

    Thanks Jayadeep
    You have done a wonderful job...........
    With regards
    Dr Kurian
    Microsoft gives you Windows... Linux gives you the whole house.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •