Ubuntu Pastebin

Paste from ndishelp at Wed, 18 May 2016 09:52:18 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
 clear
HEIGHT=27
WIDTH=80
CHOICE_HEIGHT=6
BACKTITLE="PMP ndiswrapper Wifi helper v.0.0.1 by Abe_"
TITLE="PMP Wifi v.0.0.1"
MENU="Select one of the following Options:"

	    OPTIONS=(1 "Install a Driver"
		     2 "Show .inf configuration in /etc/ndiswrapper/"
		     3 "Show Driver Status"
		     4 "Load ndiswrapper driver at System Start"
		     5 "Load ndiswrapper module"
		     6 "Delete Ndiswrapper driver"
		     7 "Install Ndiswrapper"
		     8 "Delete Ndiswrapper completely"
		     9 "Exit")
	    CHOICE=$(dialog --clear \
	    --backtitle "$BACKTITLE" \
            --title "$TITLE" \
            --menu "$MENU" \
            $HEIGHT $WIDTH $CHOICE_HEIGHT \
            "${OPTIONS[@]}" \
            2>&1 >/dev/tty)            
            clear
	    case $CHOICE in
		    1) 
		    printf "You need to get the Windows driver for your adapter!\n"
		    printf "Download and extract it. Look in the extracted directory for a file ending in .inf\n" 
		    printf "This is the file that holds all the driver information.\n"
		    printf "You must Enter the path of the .inf here:"
		    read ndisk
		    sudo ndiswrapper -i $ndisk
		    ;;
		    2)
Download as text