From 6598dcb9698e08b81a89803433956ef59656c37e Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Tue, 25 Aug 2009 14:29:37 +0000 Subject: set aptitude to "assume yes mode" when trying to install dkms git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3130 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh b/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh index d44c53fd..07631645 100755 --- a/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh +++ b/os-plugins/plugins/xserver/files/ubuntu-ng-gfx-install.sh @@ -19,9 +19,11 @@ else KVER=$(find /lib/modules/2.6* -maxdepth 0|sed 's,/lib/modules/,,g'|sort|tail -n1) fi +# TODO: check for build-essential !! + if [ ! -e "/usr/sbin/dkms" ]; then echo -n " * DKMS not found: installing .." - aptitude install dkms > /dev/null 2>&1 + aptitude -y install dkms > /dev/null 2>&1 if [ $? -eq 1 ]; then echo "fail" echo " * Didn't get package dkms! Exit now!" -- cgit v1.2.3-55-g7522