[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#559344: kldutils: bashism used in /etc/init.d/module-init-tools

When running with a default shell of dash and not bash, the
/etc/init.d/module-init-tools script complains about not finding the bash
builtin shopt:
 # /etc/init.d/module-init-tools start
 /etc/init.d/module-init-tools: 62: shopt: not found
Which is from this call:
    modules="`shopt -s nullglob ; cat /etc/modules /etc/modules.d/* \
         | sed -e \"s/#.*//g\" -e \"/^\( \|\t\)*$/d\" `"

I have to say I don't really understand where you got this code. It has
been fixed back in July, and is surely not in version 8.0-1.

It might be related to package name change in

freebsd-utils (7.1-4) unstable; urgency=low

  * Rename module-init-tools to kldutils and net-tools to freebsd-net-tools,
    as this is messing up the expectations of several services of equially
    named binary coming from the same source package.

 -- Guillem Jover <guillem@debian.org>  Mon, 13 Apr 2009 17:29:58 +0200

Please run "dpkg -L kldutils", there should be only lines


Please try also "dpkg -la | grep  modules-init-tools",
there should be no such package. You might want to purge it.


Reply to: