Source: openipmi
Version: 2.0.25-2
Severity: normal
/etc/init.d/openipmi uses /bin/sh but uses some features that require
bash:
$ checkbashisms debian/openipmi.init
possible bashism in debian/openipmi.init line 55 (should be 'b = a'):
if [ "${kernel}" == "2.4" ]; then
possible bashism in debian/openipmi.init line 202 ($"foo" should be
eval_gettext "foo"):
log_begin_msg $"Starting ipmi_watchdog driver: "
possible bashism in debian/openipmi.init line 213 ($"foo" should be
eval_gettext "foo"):
log_begin_msg $"Stopping ipmi_watchdog driver: "
possible bashism in debian/openipmi.init line 245 (should be 'b = a'):
if [ "${IPMI_POWERCYCLE}" == "yes" ]; then
Per policy sec. 10.4:
If a shell script requires non-POSIX.1-2017 features from the shell
interpreter other than those listed above, the appropriate shell
must be specified in the first line of the script (e.g.,
#!/bin/bash) and the package must depend on the package providing
the shell (unless the shell package is marked “Essential”, as in the
case of bash).
-- System Information:
Debian Release: buster/sid
APT prefers testing-debug
APT policy: (570, 'testing-debug'), (570, 'testing'), (540,
'unstable-debug'), (540, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled