| 1 | # sh -x ./autorun.sh
|
|---|
| 2 | PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb:/opt/sfw/bin:/opt/sfw/sbin:/bin:/sbin:/usr/sbin
|
|---|
| 3 | + uname -s
|
|---|
| 4 | ostype=SunOS
|
|---|
| 5 | + test SunOS != Linux
|
|---|
| 6 | + test SunOS != SunOS
|
|---|
| 7 | + dirname ./autorun.sh
|
|---|
| 8 | path=.
|
|---|
| 9 | + uname -m
|
|---|
| 10 | arch=x86
|
|---|
| 11 | + test SunOS = Linux
|
|---|
| 12 | + test SunOS = SunOS
|
|---|
| 13 | installfile=./VBoxSolarisAdditions.pkg
|
|---|
| 14 | + test -f ./VBoxSolarisAdditions.pkg
|
|---|
| 15 | pkgaddbin=pkgadd
|
|---|
| 16 | + grep no pkgadd
|
|---|
| 17 | + which pkgadd
|
|---|
| 18 | found=
|
|---|
| 19 | + test ! -z
|
|---|
| 20 | pfexecbin=pfexec
|
|---|
| 21 | + grep no pfexec
|
|---|
| 22 | + which pfexec
|
|---|
| 23 | found=
|
|---|
| 24 | + test ! -z
|
|---|
| 25 | + pfexec id -u
|
|---|
| 26 | id: illegal option -- u
|
|---|
| 27 | Usage: id [-ap] [user]
|
|---|
| 28 | userid=
|
|---|
| 29 | + test != 0
|
|---|
| 30 | ./autorun.sh: test: argument expected
|
|---|