summaryrefslogtreecommitdiffstats
path: root/pts/distro-scripts
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-10 16:08:32 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-10 16:08:32 -0400
commit3d227a3ada24ecb767334f8f6322b1b3270b8446 (patch)
treec7e582cac76615eeedafdb0566869a1c615e9a7a /pts/distro-scripts
parentb0e1db2a65b954726d06fd77e524704b8bc54b5c (diff)
downloadphoronix-test-suite-upstream-3d227a3ada24ecb767334f8f6322b1b3270b8446.tar.gz
phoronix-test-suite-upstream-3d227a3ada24ecb767334f8f6322b1b3270b8446.tar.xz
phoronix-test-suite-upstream-3d227a3ada24ecb767334f8f6322b1b3270b8446.zip
pts: Fixes for synaptic in install-ubuntu-packages.sh
Diffstat (limited to 'pts/distro-scripts')
-rwxr-xr-xpts/distro-scripts/install-ubuntu-packages.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/pts/distro-scripts/install-ubuntu-packages.sh b/pts/distro-scripts/install-ubuntu-packages.sh
index f6aa59e..6df7221 100755
--- a/pts/distro-scripts/install-ubuntu-packages.sh
+++ b/pts/distro-scripts/install-ubuntu-packages.sh
@@ -16,11 +16,7 @@ else
fi
if [ -x /usr/sbin/synaptic ] && [ ! -z "$DISPLAY" ]; then
- 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
+ $ROOT "sh -c 'echo \"$@ install\" | /usr/sbin/synaptic --set-selections --non-interactive --hide-main-window'"
else
$ROOT "apt-get -y install $@"
fi