alright i think i got this working...sorta

when i put the code under /etc/profile it seems to run it but i can't get it working because of these root problems.

Code:
#!/bin/sh
su ndiswrapper -e net8180
su ndiswrapper -i /file/directory/net8180.inf
su modprobe ndiswrapper
su ndiswrapper -m
su iwconfig wlan0 essid default
su ifconfig wlan0 up
su pump -i wlan0
when i try that, the internet doesn't work instead when i open the terminal it shows those commands but says that i used su improperly. when i try with sudo, i need to open the terminal and then it says to input a password and i do and then the internet works. When i try su root on the top and then exit on the bottom it gets really wierd. when i open the terminal it asks for the password and when i type it in it just goes to the next line but there's not [email protected] and i can't do anything. How do i properly use the root command so it would load up?

==Update==

Nevermind i got it to work. I had to configure my sudoers file in /etc/ so it would allow me to do the sudo command