@@ -77,11 +77,9 chroot_remove_cc() { | |||||
77 | } |
|
77 | } | |
78 | #GPL v2.0 |
|
78 | #GPL v2.0 | |
79 | #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh |
|
79 | #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh | |
80 | # edited with thir param |
|
|||
81 | #start |
|
|||
82 | set_kernel_config() { |
|
80 | set_kernel_config() { | |
83 |
|
|
81 | # flag as $1, value to set as $2, config must exist at "./.config" | |
84 |
|
|
82 | local TGT="CONFIG_${1#CONFIG_}" | |
85 |
|
|
83 | local REP="${2//\//\\/}" | |
86 |
|
|
84 | if grep -q "^${TGT}[^_]" .config; then | |
87 |
|
|
85 | sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config | |
@@ -92,9 +90,8 set_kernel_config() { | |||||
92 |
|
90 | |||
93 | unset_kernel_config() { |
|
91 | unset_kernel_config() { | |
94 |
|
|
92 | # unsets flag with the value of $1, config must exist at "./.config" | |
95 |
|
|
93 | local TGT="CONFIG_${1#CONFIG_}" | |
96 |
|
|
94 | sed -i "s/^${TGT}=.*/# ${TGT} is not set/" .config | |
97 | } |
|
95 | } | |
98 | # |
|
96 | # | |
99 | #end |
|
97 | ||
100 | # |
|
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant