Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
systemd.4535
nss-myhostname-config
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nss-myhostname-config of Package systemd.4535
#!/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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor