View Single Post
  #6   (View Single Post)  
Old 21st March 2020
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Shell Scout
Join Date: Oct 2017
Location: Rome
Posts: 97

Originally Posted by IdOp View Post
With that background, to answer your first question, you would look into the configuration file used to compile the binary kernel in question. If you're using a kernel supplied with the system this can be found on the web, e.g.,

Originally Posted by IdOp View Post
You're welcome. I wanted to add one other thing. The default configuration files are also found in the system source archive file syssrc.tgz . It's a pretty big file, so it may be easier just to look at the config file on the web as I suggested. But if you're compiling kernels, you already have it on your disk.

TBH, there's no need to either fetch the GENERIC config remotely or extract syssrc.tgz just to get the file, as config(1) can extract the configuration embedded in a loaded kernel ELF at any time with the -x option, and print it to stdout;

For a quick config lookup, I keep this in my ~/.shrc:
chkconf() {
        echo "Which option would you like to check?"
        read VAR
        if config -x /netbsd | grep -q $VAR; then
                echo found  
                echo not found
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„
Reply With Quote