~nilsschlupp/auto-ndiswrapper/rewrite

« back to all changes in this revision

Viewing changes to main/auto-ndis.py

  • Committer: Gabriel Joel
  • Date: 2008-04-25 20:35:44 UTC
  • Revision ID: gabrieljoel@gmail.com-20080425203544-t0ghxcb342cqhf9k
Changed the installation procedure a bit, copied it from ndisgtk

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#it under the terms of the GNU General Public License as published by
11
11
#the Free Software Foundation; either version 2 of the License, or
12
12
#(at your option) any later version.
13
 
 
14
13
#This program is distributed in the hope that it will be useful,
15
14
#but WITHOUT ANY WARRANTY; without even the implied warranty of
16
15
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
16
#GNU General Public License for more details.
18
 
 
19
17
#You should have received a copy of the GNU General Public License
20
18
#along with this program; if not, write to the Free Software
21
19
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
254
252
                print "[DEBUG] Driver found at %s" % (Inf, )
255
253
        os.system("%s -i %s" % (opts.ndiswrapper_bin, Inf, ))
256
254
        os.system("%s -l" % (opts.ndiswrapper_bin, ))
 
255
        os.system("%s -ma" % (opts.ndiswrapper_bin, ))
 
256
        os.system("modprobe -r ndiswrapper")
257
257
        os.system("modprobe ndiswrapper")               
258
 
        os.system("%s -m" % (opts.ndiswrapper_bin, ))
259
258
        os.system("echo ndiswrapper >> /etc/modules")
260
259
        
261
260
        print "Installation finished, please reboot your computer."