diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-09 11:26:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-09 11:26:06 +0100 |
commit | 989a44a555cd9d052c5fffdce7eace449a8f5ac5 (patch) | |
tree | 52e9a637e8a7c659ceee7356fad98582d77651e4 /packages/sys-kernel/dkms/files/dkms-2.3-dont-touch-configs.patch | |
parent | 467afc617524158d5b350448444d37bd002db0e7 (diff) |
sys-kernel/dkms : new exheres
Diffstat (limited to 'packages/sys-kernel/dkms/files/dkms-2.3-dont-touch-configs.patch')
-rw-r--r-- | packages/sys-kernel/dkms/files/dkms-2.3-dont-touch-configs.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/sys-kernel/dkms/files/dkms-2.3-dont-touch-configs.patch b/packages/sys-kernel/dkms/files/dkms-2.3-dont-touch-configs.patch new file mode 100644 index 0000000..e103470 --- /dev/null +++ b/packages/sys-kernel/dkms/files/dkms-2.3-dont-touch-configs.patch @@ -0,0 +1,26 @@ +diff -Nur a/dkms b/dkms +--- a/dkms 2016-08-31 18:23:47.000000000 +0100 ++++ b/dkms 2017-05-21 11:42:03.571445932 +0100 +@@ -824,22 +824,6 @@ + sa_sck_o[${#sa_sck_o[*]}]="s/\(INITRD_MODULES.*\)$obsolete_module\b\(.*\)/\1${dest_module_name[$index]}\2/" + done + done +- +- # Do all the changes at once, record the diffs for posterity +- for file in "$@"; do +- [[ $file && -w $file ]] || continue +- if [[ $file = /etc/sysconfig/kernel ]]; then +- sed "${sa_sck_o[*]}" "$file" > "$temp_dir_name/${file##*/}.new" +- else +- sed "${sa_mc_o[*]}" "$file" > "$temp_dir_name/${file##*/}.new" +- fi +- if ! mod_diff=$(diff -u "$temp_dir_name/${file##*/}.new" "$file"); then +- echo $"$file updated to replace obsoleted module references:" +- echo "$mod_diff" +- cp -fp "$temp_dir_name/${file##*/}.new" "$file" +- rm -f "$temp_dir_name/${file##*/}.new" +- fi +- done + } + + moduleconfig_add() |