summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-10 15:49:53 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-10 15:49:53 -0400
commitb0e1db2a65b954726d06fd77e524704b8bc54b5c (patch)
treee4432b8679bb16aa6fdb7783a20ea2cbb7fd2b39
parent4dd2a22e9c8662f38dceee9271a0830c96a9aed1 (diff)
downloadphoronix-test-suite-upstream-b0e1db2a65b954726d06fd77e524704b8bc54b5c.tar.gz
phoronix-test-suite-upstream-b0e1db2a65b954726d06fd77e524704b8bc54b5c.tar.xz
phoronix-test-suite-upstream-b0e1db2a65b954726d06fd77e524704b8bc54b5c.zip
pts: Fixes for synaptic in install-ubuntu-packages.sh
-rwxr-xr-xpts/distro-scripts/install-ubuntu-packages.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/pts/distro-scripts/install-ubuntu-packages.sh b/pts/distro-scripts/install-ubuntu-packages.sh
index 6df7221..f6aa59e 100755
--- a/pts/distro-scripts/install-ubuntu-packages.sh
+++ b/pts/distro-scripts/install-ubuntu-packages.sh
@@ -16,7 +16,11 @@ else
fi
if [ -x /usr/sbin/synaptic ] && [ ! -z "$DISPLAY" ]; then
- $ROOT "sh -c 'echo \"$@ install\" | /usr/sbin/synaptic --set-selections --non-interactive --hide-main-window'"
+ TEMPFILE=`/bin/tempfile`
+ echo "#!/bin/sh\necho \"$@ install\" | /usr/sbin/synaptic --set-selections --non-interactive --hide-main-window" > $TEMPFILE
+ chmod +x $TEMPFILE
+ $ROOT $TEMPFILE
+ rm -f $TEMPFILE
else
$ROOT "apt-get -y install $@"
fi