mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-02-23 04:59:16 +01:00
Add set -eu
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
7e720102cd
commit
661b483313
@ -14,6 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
|
||||
set -eu
|
||||
|
||||
output(){
|
||||
echo -e '\e[36m'"$1"'\e[0m';
|
||||
}
|
||||
|
@ -14,6 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
|
||||
set -eu
|
||||
|
||||
# List available modules
|
||||
# shellcheck disable=SC2010
|
||||
ls -R /lib/modules/"$(uname -r)"/kernel/{drivers,fs,net,sound} | grep "\.ko" | sed 's/.ko.xz//g' | sed 's/.ko.zst//g' > blacklist.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user