Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't output errors for removing nonexistent files.
  • Loading branch information
jamalex committed Apr 26, 2013
1 parent fe97baa commit 2fc0b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions use_edimax.sh
Expand Up @@ -8,7 +8,7 @@ then
fi

# use the binary hostapd for the Edimax EW-7811Un
sudo rm /usr/sbin/hostapd
sudo rm /usr/sbin/hostapd 2> /dev/null
sudo ln -s conf/hostapd_RTL8188CUS /usr/sbin/hostapd

# backup the hostapd config file if needed
Expand All @@ -18,7 +18,7 @@ then
fi

# use the hostapd config file for the Edimax EW-7811Un
sudo rm /etc/hostapd/hostapd.conf
sudo rm /etc/hostapd/hostapd.conf 2> /dev/null
sudo ln -s conf/hostapd_RTL8188CUS.conf /etc/hostapd/hostapd.conf

# restart hostapd with the new settings
Expand Down
4 changes: 2 additions & 2 deletions use_wipi.sh
Expand Up @@ -5,15 +5,15 @@ sudo service hostapd stop
if [ -f /usr/sbin/hostapd_original ];
then
# use the original binary hostapd, for the Wi-Pi
sudo rm /usr/sbin/hostapd
sudo rm /usr/sbin/hostapd 2> /dev/null
sudo ln -s /usr/sbin/hostapd_original /usr/sbin/hostapd
fi

# if we're not already using the original conf, switch
if [ -f /etc/hostapd/hostapd_original.conf ];
then
# use the hostapd config file for the Edimax EW-7811Un
sudo rm /etc/hostapd/hostapd.conf
sudo rm /etc/hostapd/hostapd.conf 2> /dev/null
sudo ln -s /etc/hostapd/hostapd_original.conf /etc/hostapd/hostapd.conf
fi

Expand Down

0 comments on commit 2fc0b73

Please sign in to comment.