Changeset 7c3008e for fedkit/make_hosts


Ignore:
Timestamp:
May 22, 2008 7:09:10 AM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
2aeb39e
Parents:
f778038
Message:

checkpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/make_hosts

    rf778038 r7c3008e  
    1818/usr/local/etc/emulab/rc/rc.route
    1919
     20# SEER feels pain and confusion if times are wrong.  This lays a big lick on
     21# ntp sets the time directly and then restarts it.  XXX FreeBSD incantation is
     22# untested.
     23
     24case `uname` in
     25        "FreeBSD")
     26                /etc/rc.d/ntpd stop
     27                /usr/sbin/ntpdate boss
     28                /etc/rc.d/ntpd start
     29                ;;
     30        "Linux")
     31                /etc/rc.d/init.d/ntpd stop
     32                /usr/sbin/ntpdate boss
     33                /etc/rc.d/init.d/ntpd start
     34                ;;
     35esac
     36
     37# Execute any command passed in as a startcmd.  This basically daisy chains the
     38# startcmd.  This needs to become a perl script to have uniform behavior here.
     39echo "*$2* *$3*"
    2040if [ ! -z "$2" ]; then
    21         su -l "$2" -c "$3"
     41        echo "calling *$2* *$3*"
     42        case `uname` in
     43                "FreeBSD")
     44                        su -l "$2" -c "$3"
     45                        ;;
     46                "Linux")
     47                        su "$2" --command="$3"
     48                        ;;
     49        esac
    2250fi
Note: See TracChangeset for help on using the changeset viewer.