axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change
on this file since e06b224 was
e06b224,
checked in by Ted Faber <faber@…>, 17 years ago
|
run the startcmd you idiot (meaning me)
|
-
Property mode set to
100755
|
File size:
308 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # Very simple script to copy the global hosts file over the local one |
---|
4 | # while preserving the localhost entry. Run on DETER master clients |
---|
5 | |
---|
6 | grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts |
---|
7 | cat $1 >> /tmp/hosts |
---|
8 | cp /tmp/hosts /etc/hosts && rm /tmp/hosts |
---|
9 | |
---|
10 | |
---|
11 | if [ ! -z "$2" ]; then |
---|
12 | su -l "$2" -c "$3" |
---|
13 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.