Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ahjolinna:kernels
kernel-cult
enable_modules.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File enable_modules.sh of Package kernel-cult
#!/bin/bash # Check if .config file exists if [ ! -f .config ]; then echo "Error: .config file not found!" exit 1 fi # Check if modules.db file exists if [ ! -f modules.db ]; then echo "Error: modules.db file not found!" exit 1 fi # Read modules from modules.db file MODULES=$(cat modules.db) # Enable modules in .config file for module in $MODULES; do grep -q "^CONFIG_$module=" .config && sed -i "s/^# CONFIG_$module is not set/CONFIG_$module=m/" .config || echo "CONFIG_$module=m" >> .config done echo "Modules enabled successfully."
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor