/lib/lsb/init-functions on downgrades to << 25-1.
* Cherry-pick a133bf10d09f788079b82f63faa7058a27ba310b from upstream,
avoids assert when dumping properties. Closes: #624094
+ * Remove "local" in non-function context in init-functions wrapper.
--
_use_systemctl=1
fi
# Redirect if there's a matching .service file in /etc or /lib
- local prog=${0##*/}
- local service="${prog%.sh}.service"
- local fp=$(systemctl -p FragmentPath show $service 2>/dev/null | sed 's/^FragmentPath=//')
+ prog=${0##*/}
+ service="${prog%.sh}.service"
+ fp=$(systemctl -p FragmentPath show $service 2>/dev/null | sed 's/^FragmentPath=//')
case "$fp" in
/lib/systemd/system/*|/etc/systemd/system/*)
_use_systemctl=1