# HG changeset patch # User Pascal Bellard # Date 1299832316 -3600 # Node ID 7f93a5930b2d3281ce550a37416d69681c393200 # Parent 98aea7827eebe78025bc1456fcbd98fb18e895ed nvidia: allow post_install without tty diff -r 98aea7827eeb -r 7f93a5930b2d nvidia/receipt --- a/nvidia/receipt Fri Mar 11 09:08:36 2011 +0100 +++ b/nvidia/receipt Fri Mar 11 09:31:56 2011 +0100 @@ -95,8 +95,8 @@ echo "For installing this package, you have to accept the $PACKAGE license." echo "The license is stored in /usr/share/licenses/$PACKAGE " echo -n "Would you like to read the license (y/N) : "; read anser - if [ "$anser" = "y" ]; then - cat /usr/share/licenses/"$PACKAGE"/LICENSE | more + if [ "$anser" = "y" -a "$(tty)" != "not a tty" ]; then + more < /usr/share/licenses/"$PACKAGE"/LICENSE echo "" fi echo "================================================================================"