mirror of
https://github.com/TommyTran732/Kernel-Module-Blacklist.git
synced 2025-02-23 13:09:23 +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
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
output(){
|
output(){
|
||||||
echo -e '\e[36m'"$1"'\e[0m';
|
echo -e '\e[36m'"$1"'\e[0m';
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
# License for the specific language governing permissions and limitations under
|
# License for the specific language governing permissions and limitations under
|
||||||
# the License.
|
# the License.
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
# List available modules
|
# List available modules
|
||||||
# shellcheck disable=SC2010
|
# 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
|
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