Last change
on this file since 3841 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
382 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | exec >/dev/null
|
---|
| 4 | exec 2>&1
|
---|
| 5 | exec </dev/null
|
---|
| 6 |
|
---|
| 7 | # Since per-process /proc/net/ (-> /proc/self/net/) appeared,
|
---|
| 8 | # we need to be root
|
---|
| 9 | user="root"
|
---|
| 10 | tty="/dev/tty9"
|
---|
| 11 | cmd="nmeter '%t %c x %x p%p f %f b %b m %m if%[nif]'"
|
---|
| 12 |
|
---|
| 13 | chmod -R a+X . # or else env will moan
|
---|
| 14 | chown "$user": "$tty" # devfs made happy
|
---|
| 15 |
|
---|
| 16 | eval exec \
|
---|
| 17 | env - PATH="$PATH" \
|
---|
| 18 | setuidgid "$user" \
|
---|
| 19 | <"$tty" >"$tty" 2>&1 \
|
---|
| 20 | $cmd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.