a699b1ca34
- Do not provide %{release} for systemd-analyze - Add more conflicts to -mini packages - Disable Predictable Network interface names until it has been reviewed by network team, with /usr/lib/tmpfiles.d/network.conf. - Don't package /usr/lib/firmware/update (not used) (forwarded request 172848 from fcrozat) OBS-URL: https://build.opensuse.org/request/show/172873 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=135
32 lines
534 B
Bash
32 lines
534 B
Bash
#!/bin/bash
|
|
# sed calls copied from fedora package
|
|
set -e
|
|
|
|
case "$1" in
|
|
--help)
|
|
echo "$0 [--enable|--disable]"
|
|
exit 0
|
|
;;
|
|
--enable)
|
|
sed -i.bak -e '
|
|
/^hosts:/ !b
|
|
/\<myhostname\>/ b
|
|
s/[[:blank:]]*$/ myhostname/
|
|
' /etc/nsswitch.conf
|
|
;;
|
|
--disable)
|
|
sed -i.bak -e '
|
|
/^hosts:/ !b
|
|
s/[[:blank:]]\+myhostname\>//
|
|
' /etc/nsswitch.conf
|
|
;;
|
|
"")
|
|
if grep -q "^hosts:.*\<myhostname\>" /etc/nsswitch.conf; then
|
|
echo "enabled"
|
|
else
|
|
echo "disabled"
|
|
fi
|
|
;;
|
|
*) echo "invalid argument $1"; exit 1 ;;
|
|
esac
|