Changeset 7c3008e for fedkit/make_hosts
- Timestamp:
- May 22, 2008 7:09:10 AM (17 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 2aeb39e
- Parents:
- f778038
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/make_hosts
rf778038 r7c3008e 18 18 /usr/local/etc/emulab/rc/rc.route 19 19 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 24 case `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 ;; 35 esac 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. 39 echo "*$2* *$3*" 20 40 if [ ! -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 22 50 fi
Note: See TracChangeset
for help on using the changeset viewer.