mirror of
https://github.com/Snigdha-OS/snigdhaos-system-installation.git
synced 2025-09-21 05:44:57 +02:00
@eshanized: push via push.sh!!!
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!bin/bash
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Author : Eshan Roy <eshan@snigdhaos.or>
|
||||
@@ -10,6 +10,7 @@ echo
|
||||
|
||||
numberofcores=$(grep -c ^processor /proc/cpuinfo)
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
if [ $numberofcores -gt 1 ]; then
|
||||
echo "TOTAL CORES : "$numberofcores
|
||||
echo "Changing makeflags for "$numberofcores "cores."
|
||||
|
@@ -8,7 +8,8 @@ echo
|
||||
echo "--->> Start snigdhaos-fixes <<---"
|
||||
echo
|
||||
|
||||
kernel_cmdline(){
|
||||
kernel_cmdline() {
|
||||
# shellcheck disable=SC2013
|
||||
for param in $(cat /proc/cmdline); do
|
||||
case "${param}" in
|
||||
$1=*) echo "${param##*=}"; return 0 ;;
|
||||
@@ -16,11 +17,13 @@ kernel_cmdline(){
|
||||
*) continue ;;
|
||||
esac
|
||||
done
|
||||
[ -n "${2}" ] echo "${2}"
|
||||
[ -n "${2}" ] && echo "${2}"
|
||||
return 1
|
||||
}
|
||||
|
||||
get_driver(){
|
||||
# shellcheck disable=SC2005
|
||||
# shellcheck disable=SC2046
|
||||
echo $(kernel_cmdline driver)
|
||||
}
|
||||
|
||||
@@ -38,6 +41,7 @@ done
|
||||
selection=$(get_driver)
|
||||
|
||||
echo
|
||||
# shellcheck disable=SC2086
|
||||
echo "Your Selection : "$selection
|
||||
echo
|
||||
|
||||
|
Reference in New Issue
Block a user