Changeset b4624b2 for fedkit/make_hosts
- Timestamp:
- Feb 10, 2010 10:48:14 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 43649f1
- Parents:
- 641bb66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/make_hosts
r641bb66 rb4624b2 24 24 25 25 grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts 26 cat $1>> /tmp/hosts26 cat "$CONFIGDIR/hosts" >> /tmp/hosts 27 27 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 28 28 … … 97 97 # Execute any command passed in as a startcmd. This basically daisy chains the 98 98 # startcmd. This needs to become a perl script to have uniform behavior here. 99 echo "*$ 2* *$3*"100 if [ ! -z "$ 2" ]; then101 echo "calling *$ 2* *$3*"99 echo "*$1* *$2*" 100 if [ ! -z "$1" ]; then 101 echo "calling *$1* *$2*" 102 102 case `uname` in 103 103 "FreeBSD") 104 su -l "$ 2" -c "$3"104 su -l "$1" -c "$2" 105 105 ;; 106 106 "Linux") 107 su "$ 2" --command="$3"107 su "$1" --command="$2" 108 108 ;; 109 109 esac
Note: See TracChangeset
for help on using the changeset viewer.