make insert_modules variables local
This commit is contained in:
parent
3f0c99a2ba
commit
719d40d389
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
function insert_MODULES () {
|
||||
function insert_MODULES() {
|
||||
# Get the header and enabled modules separately from the /etc/modules file
|
||||
local MODULES_HEADER
|
||||
local MODULES_ENABLED
|
||||
local VENDOR_RESET
|
||||
MODULES_HEADER=$(head -n $1 "$2" | grep -P "^#" | grep -v "# Added by quickpassthrough")
|
||||
MODULES_ENABLED=$(cat "$2" | grep -vP "^#" | grep -v "vendor-reset")
|
||||
VENDOR_RESET=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue