#!/bin/bash NSLCD_CONF="/etc/nslcd.conf" sed '/^### ADDED BY AUTHCONFIG-POST HOOK/,$d' -i $NSLCD_CONF cat >> $NSLCD_CONF <