diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-05-14 16:47:35 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-05-14 16:47:35 +0200 |
commit | 4c141e44b54fa80aac57c31269a25c7669054c66 (patch) | |
tree | 6c2340d2e26eeb7aa47b5644fc4cd6165a48cc5c /rc.d/net-set-variable | |
parent | 1f0a7025ed184ddd347a6a4f443bacbb042a72e2 (diff) | |
download | netctl-4c141e44b54fa80aac57c31269a25c7669054c66.tar.gz netctl-4c141e44b54fa80aac57c31269a25c7669054c66.tar.xz |
Fix sh compatibility (FS#29880)
Installing Virtualbox guest additions should work again.
Diffstat (limited to 'rc.d/net-set-variable')
-rw-r--r-- | rc.d/net-set-variable | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/net-set-variable b/rc.d/net-set-variable index cc881e7..d2d68fa 100644 --- a/rc.d/net-set-variable +++ b/rc.d/net-set-variable @@ -1,10 +1,10 @@ # Set the NET variable if specified on the kernel command line. -net-set-variable() { +net_set_variable() { local re="\<NET=([^ ]+)\>" if [[ -f /proc/cmdline && $(< /proc/cmdline) =~ $re ]]; then export NET=${BASH_REMATCH[1]} fi } -add_hook multi_start net-set-variable +add_hook multi_start net_set_variable |