LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-17-2019, 11:05 PM   #1
Lockywolf
Member
 
Registered: Jul 2007
Posts: 197

Rep: Reputation: 41
sbopkg batch mode


Hello, everyone.

I feel like super stupid, but I don't seem to be able to find a simple thing.

I want to automatically update my nvidia drivers after the kernel update.

To do this, I have written a super simple script:

Code:
#!/bin/sh

#if [$(whoami) -neq 'root']; then
#do
#  exit 1
#done

slackpkg -batch=on reinstall xorg mesa
sbopkg -q -e continue -B -i nvidia-legacy390-driver:COMPAT32=on -i nvidia-legacy390-kernel
But sbopkg keeps asking me if I really want to use the COMPAT32 option.

I guess, I can just add a HEREDOC, to supply 'c' to the standard input, but that seems like a dirty trick. Is there really no command line option to supply a default answer to sbopkg?
 
Old 04-19-2019, 10:54 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,456
Blog Entries: 15

Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
I'm no expert with nVidai but I'm curious.

Has using the COMPAT32 option in the past been an issue for you <or> has it worked?

I did some googling and couldn't find another way to update nvidia drivers. The best I found was a Slackware WiKi on nvidia.
https://slackwiki.com/NVIDIA_Graphics

If there is a default command that you can pass to sbopkg you might try the man page for sbopkg.
https://sbopkg.org/docs.php

Hope you are able to update your nvidia driver.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to write a batch file in linux?and what are batch(.bat) file benefits? karthilin Linux - Newbie 8 10-15-2012 02:10 PM
Running ‘top’ with ‘Irix mode’ off in batch mode alexz1011 Linux - Software 1 10-02-2009 03:29 PM
i want to convert .wav file into mp3 files in batch mode sparsh Linux - Software 6 11-20-2007 10:53 AM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 09:36 AM
MySQL in batch mode ganninu Linux - General 1 11-20-2003 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration