I sympathize.  Personally, I'm looking at a pile of really old Sun workstations that have to be patched.  Some are as old as Solaris 5.5 - ugggh.

I wish I knew a better way.  I guess we could use the full tzdata package on the gumstix, but we would still need to touch every system to update the timezone files.  I'm thinking that any time the rules change in an _unanticipated_ way, we have to touch all the boxes.

Best of luck with your windows boxes.

    Steve


L R Nix wrote:
Interesting extra to the time zone entry.  hmmm.  I'd have my reservations 
about using it hardcoded as such though, as this coming year's "update" to 
the DST system would snafu things.  Granted, you're already set up for the 
new system... but you'd have to change all your systems that was coded in 
to accommodate the new stuff if you were using the old system previously.  
I usually have my router (linksys WRT54G v2.2 with tweaked dd-wrt 
firmware) be a 'stratum 3' (2?) time server and everything in the house 
and office sync off that.

I administer about 150 systems here in town and am not really looking 
forward to the upcoming 'spring forward'.  I recently took over the 
administration of the systems and I am unsure of the updateness of the 
windows systems.  Meaning I have to touch every last one of them.  blech.

[whine] why can't Microsoft use GMT as a standard? [/whine]

Ok, I'm done.

On Tue, 20 Feb 2007, Steven A. Falco wrote:

  
Date: Tue, 20 Feb 2007 07:34:41 -0500
From: Steven A. Falco <safalco@optonline.net>
Reply-To: General mailing list for gumstix users.
    <gumstix-users@lists.sourceforge.net>
To: General mailing list for gumstix users.
    <gumstix-users@lists.sourceforge.net>
Subject: Re: [Gumstix-users] A script to help with initial setup after
    	flashing

Thanks for the script.  I use a slightly different timezone string:  
EST5EDT,M3.2.0,M11.1.0 where the extra fields specify when DST is 
entered and exited (and yes, I am on the east coast).  An explanation is 
here:

    http://www-1.ibm.com/support/docview.wss?uid=isg3T1000252

M3 means the third month, March.  The .2.0 means the second Sunday in 
the month.  The time is implicitly 2:00 AM, but can be overridden if 
needed.  Similarly, M11.1.0 means the first Sunday in November.

    Steve


L R Nix wrote:
    
Hi Guys,

Below is a script I built to help me do some initial configuration to a 
gumstix after flashing.  Basically, mmc enabling, date/time settings, 
disabling startup scripts I don't have or use.

Thought the group might like it.  I've been lurking for several months 
now, thoroughly enjoying the group and learning new things every day. 
(alas, I learned yesterday that if you neglect the 'erase 1:0-1' statement 
when updating the u-boot... well, I'll be contacting the gumstix reflash 
service tomorrow unless someone can tell me how to access the jtag signals 
on the little beastie)

File is attached, and embedded below, also can be picked up at 
http://lornix.com/gumstix/utils too.

A few embedded newlines, watch out for backslash placements.

Take Care,

Loni
lornix@lornix.com

==================8<=====SNIP==========>8===============
#!/bin/sh
#
if [ ! -e /etc/init.d/S42nettime ] ; then
  echo "Adding startup script for net-time"
  cat <<NETTIME > /etc/init.d/S42nettime
#!/bin/sh
#
# Set time via network
#

start() {
 	# a short pause to allow eth0 to come up properly
  sleep 5
  # I'm in Central Time Zone, adjust accordingly
  echo "CST6CDT" > /etc/TZ
  echo -n "Setting time from NTP... "
  # of course, change the ntp pool address as needed
  rdate -s us.pool.ntp.org
  # print out the date/time found
  date
}	
restart() {
	start
}	

case "\$1" in
  start)
  	start
	;;
  restart|reload)
  	restart
	;;
  stop)
  ;;
  *)
	echo \$"Usage: \$0 {start|stop|restart}"
	exit 1
esac

exit \$?
NETTIME
  chmod +x /etc/init.d/S42nettime
fi
#
if [ ! -e /etc/init.d/S99checkin ] ; then
  echo "Adding startup script for unit checkin"
  cat <<CHECKIN >/etc/init.d/S99checkin
#!/bin/sh
#
start() {
  # get serial # from /proc/cpuinfo (assumed unique for each)
 	serial=\`grep -i "^serial" /proc/cpuinfo | sed "s/^.*: //"\`
  # attempt to get a particular webpage on my home server to say hello
  # contents are discarded at the moment, may change later
  wget -O - "http://lornix.com/gumstix/checkin/?boot=\${serial}" >/dev/null 2>&1
}	
restart() {
	start
}	

case "\$1" in
  start)
  	start
	;;
  restart|reload)
  	restart
	;;
  stop)
  ;;
  *)
	echo \$"Usage: \$0 {start|stop|restart}"
	exit 1
esac

exit \$?
CHECKIN
  chmod +x /etc/init.d/S99checkin
fi
#
# remove the bluetooth and bonjour stuff
if [ -e /etc/init.d/S30bluetooth ] ; then
  echo "Disabling bluetooth startup script"
  mv /etc/init.d/S30bluetooth /etc/init.d/xS30bluetooth
fi
#
if [ -e /etc/init.d/S50bonjour ] ; then
  echo "Disabling bonjour startup script"
  mv /etc/init.d/S50bonjour /etc/init.d/xS50bonjour
fi
#
# remove the big mmc/CF msg from motd
if [ ! -e /etc/motd.old ] ; then
  echo "Removing mmc/CF banner from motd"
  # move big banner thingy out of the way
  mv /etc/motd /etc/motd.old
  # create a zero-byte dummy so no one complains
  # (shouldn't happen... but...)
  touch /etc/motd
fi
#
if [ 0 -ne $(grep -c "^pcmcia" /etc/modules) ] ; then
  echo "Adjusting /etc/modules for mmc access"
  # uncomment some, comment others
  sed -i -e "s/^#mmc_block/mmc_block/" \
         -e "s/^#pxamci/pxamci/" \
         -e "s/^smc91x/#&/" \
         -e "s/^pcmcia/#&/" \
      /etc/modules
fi
#
if [ 0 -ne $(grep -c "^auto mwlan0" /etc/network/interfaces) ] ; then
  echo "Adjusting /etc/network/interfaces for mmc access"
  echo "Inserting gumstix hostname statement into file"
  # comment a few, add a line to one
  sed -i -e "s/^auto mwlan0/#&/" \
         -e "s/^iface mwlan0/#&/" \
         -e "s/^.*pre-up.*essid any txpower/#&/" \
         -e "/iface eth0 inet dhcp/a\ \ hostname gumstix\
" /etc/network/interfaces
fi
#

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

  
      
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

    

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users