ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

r268x crond -l 10 -c /etc/crontabs

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> beta-1.5 Release Candidates
View previous topic :: View next topic  
Author Message
Ads






Posted: Sat Sep 23, 2017 11:46 am    Post subject: Ads

Back to top
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Sun Jan 31, 2010 7:27 pm    Post subject: Reply with quote

This is on a node that is down (r2688)

Code:
root@Node2_MR3201a:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1984 S    init
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
   23 root         0 SW<  [kblockd/0]
   43 root         0 SW   [pdflush]
   44 root         0 SW   [pdflush]
   45 root         0 SW<  [kswapd0]
   46 root         0 SW<  [aio/0]
   61 root         0 SW<  [mtdblockd]
  242 root         0 SWN  [jffs2_gcd_mtd2]
  374 root      1984 S    logger -s -p 6 -t
  375 root      1984 S    init
  383 root      1996 S    syslogd -C16
  385 root      1980 S    klogd
  397 root      1136 S    /sbin/hotplug2 --override --persistent --max-children
  804 root      2000 S    /sbin/udhcpc -i eth0 -t 10 -n -s /usr/share/udhcpc/ro
 1550 root      1408 S    hostapd -P /var/run/wifi-ath2.pid -B /var/run/hostapd
 1556 root      1940 S    /usr/sbin/dropbear -p 22
 1667 root      2300 S    olsrd -f /etc/olsrd.conf -nofork
 1698 nobody    1280 S    dnsmasq -C /tmp/dnsmasq.conf --resolv-file=/etc/resol
 1798 root      2148 S    /usr/bin/nodogsplash
 2002 root      2148 S    /usr/bin/nodogsplash
 2003 root      2148 S    /usr/bin/nodogsplash
 2006 root      2148 S    /usr/bin/nodogsplash
 2123 root      1984 S    /usr/sbin/httpd -p 8080 -h /www -c /etc/httpd.conf -r
 2192 root      1976 S    watchdog -t 5 /dev/watchdog
11818 root      1996 R    /usr/sbin/dropbear -p 22
11819 root      1992 S    -ash
11824 root      1984 R    ps
root@Node2_MR3201a:~#


PM me if you want to SSH into my nodes

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Sun Jan 31, 2010 7:41 pm    Post subject: Reply with quote

Would you like me to install this patch in all my nodes?


Code:
#!/bin/sh

CALLER=$1
CALLER="${CALLER:-1}"
CONF=chilli
WDIR=/etc/update
k_restart=0

wifi_CPA=0
[ 4 -eq "$(uci get cp_switch.main.which_handler)" ] && wifi_CPA=1

format_value() {
   local str="$*"
   echo -n "$str" | tr -d '\n\r\v'
}

skip() { return; }

echo "processing UCI file: $CONF"
while read riga ; do
        SECTION_OPTION=$(echo $riga | awk '{print $1}')
        option="${CONF}.${SECTION_OPTION}"
        VALUE=$(echo $riga | awk '{print $2}') ; VALUE=$(format_value "$VALUE")
      old_value=$(uci get ${option})
       
   case $SECTION_OPTION in
      'agent.uamurlextras'|'agent.uamurl')
         if [ "$old_value" != "$VALUE" ] ; then
            uci set $option="${VALUE}"
            uci commit chilli
            k_restart=1
            [ 1 -eq "$wifi_CPA" ] && k_restart=0
         fi
         ;;

      *)
         if [ "$old_value" != "$VALUE" ] ; then
            uci set $option="${VALUE}"
            uci commit chilli
            k_restart=1
         fi
      ;;
   esac
done < $WDIR/chilli

[ 1 -eq "$CALLER" ] && {
   if [ "$k_restart" -eq 1 ] ; then
        uci set flags.restart.cps="1"
        uci commit flags
   fi
}
#

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
Antonio (isleman)
Site Admin
Site Admin


Joined: 10 Feb 2008
Posts: 2323
Location: Toscana, Italy

PostPosted: Sun Jan 31, 2010 9:33 pm    Post subject: Reply with quote

no, I prefer have a tour in that node
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> beta-1.5 Release Candidates All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 0.065