Results 1 to 4 of 4

Thread: Creating a script to remove and re install windows driver

  1. #1
    Join Date
    Nov 2010
    Beans
    3
    Distro
    Ubuntu UNR

    Creating a script to remove and re install windows driver

    Hi guys, I am looking for a little help. I am running 10.10 on a Samsung n130. Occasionally my wifi adapter locks up, everything looks like it is connected but I cannot connect to the web. I have worked out that removing and re-installing the windows driver brings it back to life (a restart also works). What I was wondering is could it be possible to create a script that would carry out the removal and installation of the driver with one click of a button.

    Many thanks

  2. #2
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Creating a script to remove and re install windows driver

    Have you tried reloading ndiswrapper instead?

    Code:
    sudo modprobe -r ndiswrapper && sudo modprobe ndiswrapper
    If you really need to reinstall the driver, then a script is just a text file with commands and the executable bit.

    Code:
    #!/bin/bash
    
    command1
    
    command2
    
    etc

  3. #3
    Join Date
    Nov 2010
    Beans
    3
    Distro
    Ubuntu UNR

    Re: Creating a script to remove and re install windows driver

    Thanks for that. I have created an executable file for enabling and disabling the ndiswrapper. I will see if that works next time I get the problem. Is there a way to work out the commands used for removing and re installing the driver?

    Thanks

  4. #4
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Creating a script to remove and re install windows driver

    'To workout the commands?' They are the same commands you use to do it, no magic here, that is, unless someone else does it for you.

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
  •