<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,11 +48,11 @@ ownip=10.17.17.1
 # none of the files below might exist, so we route any error messages to our
 # logging daemon /dev/null
 # global config
-. /etc/wshare.conf 2&gt;/dev/null
+[[ -r /etc/wshare.conf ]] &amp;&amp; . /etc/wshare.conf 2&gt;/dev/null
 # personal config
-. $HOME/.wshare.conf 2&gt;/dev/null
+[[ -r $HOME/.wshare.conf ]] &amp;&amp; . $HOME/.wshare.conf 2&gt;/dev/null
 # testing config, same dir as script, shmagic.
-. ${0%%wshare}wshare.conf 2&gt;/dev/null
+[[ -r ${0%%wshare}wshare.conf ]] &amp;&amp; . ${0%%wshare}wshare.conf 2&gt;/dev/null
 
 # default behaviour
 client=true
@@ -91,7 +91,7 @@ echo switching ${innet} to mode: ad-hoc
 if [[ ${innet} == &quot;ath0&quot; ]]; then
    wlanconfig ${innet} destroy || exit 1
    # madwifi calls the mode adhoc, not ad-hoc...
-   wlanconfig ath0 create wlandev wifi0 wlanmode adhoc; break ;;
+   wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
 else
    iwconfig ${innet} mode ad-hoc || exit 1
 fi</diff>
      <filename>wshare</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>41f3cdc9dc0217c430cb8e6b1a389eeb2884b1d7</id>
    </parent>
  </parents>
  <author>
    <name>Stefan Marsiske</name>
    <email>stef@ctrlc.hu</email>
  </author>
  <url>http://github.com/stef/wshare/commit/2fa3aaf86597d853358e3670a9182fc33a632f71</url>
  <id>2fa3aaf86597d853358e3670a9182fc33a632f71</id>
  <committed-date>2008-06-16T05:24:57-07:00</committed-date>
  <authored-date>2008-06-16T05:24:57-07:00</authored-date>
  <message>fixed 2 bugs
   config file reading bug - if file is unavailable processing stops
   mode switch had a syntax error, resulting from the removal of a case statement</message>
  <tree>c7ba2aaa955bf88a029fc42aa944a5c39f2b714d</tree>
  <committer>
    <name>Stefan Marsiske</name>
    <email>stef@ctrlc.hu</email>
  </committer>
</commit>
