Linux: /etc/nslcd.conf gets re-written and LDAP stops working
Thursday, August 15th, 2013Googlefood. Not interesting to most people.
Googlefood. Not interesting to most people.
Mostly googlefood, since I spent way too long looking for this.
sed -n -e ‘s/ *(.*)//g’ -e ‘s/ /-/g’ -e ‘1p’ /etc/issue
Examples:
nethead2:$ sed -n -e 's/ *(.*)//g' -e 's/ /-/g' -e '1p' /etc/issue
Scientific-Linux-release-6.0
dhollowa-106$ sed -n -e 's/ *(.*)//g' -e 's/ /-/g' -e '1p' /etc/issue
CentOS-release-5.6