From 8a6048fc545cbbf3429d325d75bc67262854a04f Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Sat, 27 Jun 2015 15:47:46 +0200 Subject: [PATCH] For coherency use [[:space:]] instead of \s in grep too --- vps2arch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vps2arch b/vps2arch index 8411212..b951a1f 100755 --- a/vps2arch +++ b/vps2arch @@ -112,7 +112,7 @@ configure_bootloader() { findmnt -no SOURCE / | grep -q '^/dev/mapper/' && needs_lvm2=1 # If you are still using eth* as interface name, disable "strange" ifnames - if grep -q '^\s*eth' /proc/net/dev; then + if grep -q '^[[:space:]]*eth' /proc/net/dev; then sed -i.bak 's/GRUB_CMDLINE_LINUX_DEFAULT="/&net.ifnames=0 /' /etc/default/grub fi