- Joined
- Dec 19, 2000
I have my script fully working but it needs a little cleaning up. I have it run when the system starts up but I do not want it displaying things like the network key. How can I hide the code execution?
Code:
#!/bin/sh
#
# Wireless USB setup for Syntax USB-400
#
# Enable wireless USB for wlan0
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
# Set SSID for your network
set +v wlanctl-ng wlan0 lnxreq_autojoin ssid="MySSID" authtype=opensystem
# Set WEP attributes
set +v wlanctl-ng wlan0 lnxreq_hostwep encrypt=true decrypt=true
set +v wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
# Set WEP key
set +v wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
set +v wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=00:00:00:00:00
# Step 5 - set IP configuration
dhcpcd wlan0