|
Last change
on this file since 16 was
1,
checked in by buchmann, 18 years ago
|
|
Initial import from CVS repository
|
|
File size:
416 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | # -------------------------------------------------------------------- |
|---|
| 4 | # Function : `guess_os()'. |
|---|
| 5 | |
|---|
| 6 | guess_os () |
|---|
| 7 | { |
|---|
| 8 | case "`uname -sr`" in |
|---|
| 9 | Linux*2.4.9*) echo "Linux.RH71";; |
|---|
| 10 | Linux*FC2*) echo "Linux.FC2";; |
|---|
| 11 | Linux*EL*) echo "Linux.SLA4x";; |
|---|
| 12 | SunOS\ 5*) echo "Solaris";; |
|---|
| 13 | Darwin*) echo "Darwin";; |
|---|
| 14 | *) echo "`uname -sr`";; |
|---|
| 15 | esac |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | echo `guess_os` |
|---|
Note: See
TracBrowser
for help on using the repository browser.