Update of /cvsroot/leaf/src/bering-uclibc/apps/webwlan
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10528

Added Files:
        buildtool.cfg buildtool.mk viewwlan webwlan.plugin 
Log Message:
source and buildtool setup for wlan plugin


--- NEW FILE: viewwlan ---
#!/bin/sh
. ./weblet.functions

IP=/sbin/ip
IWCONFIG=/sbin/iwconfig
IWLIST=/sbin/iwlist

# For Hostap info currently only one interface (wlan0) is supported
HOSTAP_DIR=/proc/net/hostap/wlan0


showwlan="echo Command not found"
[ -x $IWCONFIG ] && showwlan="$IWCONFIG"

showchan='echo Command not found ' 
[ -x $IWLIST ]&& showchan=`$IWLIST channel | grep requenc`

showstations=`ls $HOSTAP_DIR | grep :`

showmacctrl=`cat $HOSTAP_DIR/ap_control`

showauth=`grep auth $HOSTAP_DIR/ap_debug`
case $showauth in
    *0)
        showauth="No authentication allowed ($showauth)"
        ;;
    *1)
        showauth="Open System Authentication ($showauth)"
        ;;
    *2)
        showauth="Shared Key Authentication ($showauth)"
        ;;
    *3)
        showauth="Open System or Shared Key Authentication - default ($showauth)"
        ;;
esac

showwep=`cat $HOSTAP_DIR/debug | grep crypt`
case $showwep in
    *WEP)
        showwep="WEP is enabled (keys can only be accessed as 'root')"
        break
        ;;
    *)
        showwep="WEP is disabled"
        ;;
esac

showmisc1=`cat $HOSTAP_DIR/ap_debug | grep bridge_packets`
case $showmisc1 in
    *0)
        showmisc1="No bridging of packets, all packets are passed to the IP layer 
($showmisc1)"
        ;;
    *1)
        showmisc1="Packets are bridged, only packets for the AP itself are passed to 
the IP layer ($showmisc1)"
        ;;
esac


htmlhead "view wireless network"
b_head
t_head "Wireless Interfaces"
cat <<-/WIFCONTENT
 <tr>
  <td><div><PRE>
$($showwlan)
  </PRE></div>
  </td>
 </tr>
/WIFCONTENT
t_foot

t_head "Current Channels"
cat <<- /CHANCONTENT
 <tr>
  <td><div><PRE>
$showchan
  </PRE></div>
  </td>
 </tr>
/CHANCONTENT
t_foot 

t_head "HostAp - Associated Stations"
cat <<- /ASSOCCONTENT
 <tr>
  <td><div><PRE>
$showstations
  </PRE></div>
  </td>
 </tr>
/ASSOCCONTENT
t_foot

t_head "HostAp - MAC Access Control"
cat <<- /MACCONTENT
 <tr>
  <td><div><PRE>
$showmacctrl
  </PRE></div>
  </td>
 </tr>
/MACCONTENT
t_foot

t_head "HostAp - Authentication & WEP encryption"
cat <<- /AUTHCONTENT
 <tr>
  <td><div><PRE>
$showauth
$showwep
  </PRE></div>
  </td>
 </tr>
/AUTHCONTENT
t_foot

t_head "HostAp - Miscellaneous"
cat <<- /MISCCONTENT
 <tr>
  <td><div><PRE>
$showmisc1
  </PRE></div>
  </td>
 </tr>
/MISCCONTENT
t_foot
b_foot
htmlend
         

--- NEW FILE: buildtool.mk ---
# makefile for webwlan
include $(MASTERMAKEFILE)

WEBWLAN_DIR=.
WEBWLAN_TARGET_DIR:=$(BT_BUILD_DIR)/webipv6

$(WEBWLAN_DIR)/.source:
        touch $(WEBWLAN_DIR)/.source

source: $(WEBWLAN_DIR)/.source
                        
$(WEBWLAN_DIR)/.configured: $(WEBWLAN_DIR)/.source
        touch $(WEBWLAN_DIR)/.configured
                                                                 
$(WEBWLAN_DIR)/.build: $(WEBWLAN_DIR)/.configured
        mkdir -p $(WEBWLAN_TARGET_DIR)
        mkdir -p $(WEBWLAN_TARGET_DIR)/var/sh-www/plugins       
        mkdir -p $(WEBWLAN_TARGET_DIR)/var/sh-www/cgi-bin
        cp -a webwlan.plugin $(WEBWLAN_TARGET_DIR)/var/sh-www/plugins
        cp -a viewwlan $(WEBWLAN_TARGET_DIR)/var/sh-www/cgi-bin
        cp -a $(WEBWLAN_TARGET_DIR)/* $(BT_STAGING_DIR)
        touch $(WEBWLAN_DIR)/.build

build: $(WEBWLAN_DIR)/.build
                                                                                       
  
clean:
        rm -rf $(WEBWLAN_TARGET_DIR)
        rm $(WEBWLAN_DIR)/.build
        rm $(WEBWLAN_DIR)/.configured
                                                                                       
                          
srcclean: clean
        rm -rf $(WEBWLAN_DIR) 
        rm $(WEBWLAN_DIR)/.source

--- NEW FILE: buildtool.cfg ---
<Server cvs-sourceforge>
  Type = viewcvs
  Name = cvs.sourceforge.net/cgi-bin/viewcvs.cgi
  Serverpath = /leaf/src/bering-uclibc/apps
</Server>
      
<File buildtool.mk>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = webwlan
</File>
                  
<File viewwlan>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = webipv6
</File>

<File webwlan.plugin>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = webwlan
</File>

<Package>
        <webwlan>
                Version = 0.2
                Revision = 1

                Help <<EOF
                Weblet plugin - Wireless Network Status
                LEAF package by __PACKAGER__, __BUILDDATE__             
                EOF
                
                <Permissions>
                        Files = 644
                        Directories = 755
                </Permissions>

                <Owner>
                        Files = root:root
                        Directories = root:root
                </Owner>
                
                <Contents>
                        <File>          
                                Filename        = var/sh-www/plugins/webwlan.plugin
                                Source          = var/sh-www/plugins/webwlan.plugin
                                Type            = binary
                                Permissions = 644
                                Owner   = 50:4
                        </File>                 

                        <File>
                                Filename    = var/sh-www/cgi-bin/viewwlan
                                Source      = var/sh-www/cgi-bin/viewwlan
                                Type        = binary
                                Permissions = 755
                                Owner   = 50:4
                        </File>
                </Contents>                     
        </webwlan>
</Package>

--- NEW FILE: webwlan.plugin ---
<a href="/cgi-bin/viewwlan" class="bold" target="_top">Wireless LAN Status</A>



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
leaf-cvs-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to