diff --git a/openmamba-update/openmamba-netsrpms b/openmamba-update/openmamba-netsrpms index b4961ba..0c992a7 100755 --- a/openmamba-update/openmamba-netsrpms +++ b/openmamba-update/openmamba-netsrpms @@ -99,8 +99,17 @@ for pckname in $PACKAGES; do cpio --quiet --extract --make-directories < $tmpfile ) 2>/dev/null if [ -f $tmpdir/LICENSE ]; then - license-dialog $tmpdir/LICENSE - [ $? -ne 0 ] && exit 1 + if [ "$DISPLAY" ]; then + license-dialog $tmpdir/LICENSE + [ $? -ne 0 ] && exit 1 + else + echo "You must accept the following license terms:" + echo + more $tmpdir/LICENSE + echo -n "Do you agree with the above license terms [y/N]? " + read ans + [ "$ans" = "Y" -o "$ans" = "y" ] || exit 1 + fi fi notify-send -a $"Network software installation" -i $icon "$pckname" $"$pckname installation in progress..."