Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>


 967     PROG=`basename $0`  # Program name
 968     PID=$$              # Program ID
 969     VERB='> /dev/null 2>&1'   # NULL or "> /dev/null"
 970     ECHO="/bin/echo"    # print message on screen
 971     EVAL="eval"         # eval or echo
 972     EGREP="/usr/bin/egrep"
 973     GREP="/usr/bin/grep"
 974     DEBUG=0             # Set Debug OFF
 975     BACKUP=no_ldap      # backup suffix
 976     HOST=""             # NULL or <hostname>
 977     NAWK="/usr/bin/nawk"
 978     RM="/usr/bin/rm"
 979     WC="/usr/bin/wc"
 980     CAT="/usr/bin/cat"
 981     SED="/usr/bin/sed"
 982     MV="/usr/bin/mv"
 983 
 984     DOM=""              # Set to NULL
 985     # If DNS domain (resolv.conf) exists use that, otherwise use domainname.
 986     if [ -f /etc/resolv.conf ]; then
 987         DOM=`/usr/xpg4/bin/grep -i -E '^domain|^search' /etc/resolv.conf \
 988             | awk '{ print $2 }' | tail -1`
 989     fi
 990 
 991     # If for any reason the DOM did not get set (error'd resolv.conf) set
 992     # DOM to the domainname command's output.
 993     if [ "$DOM" = "" ]; then
 994         DOM=`domainname`        # domain from domainname command.
 995     fi
 996 
 997     STEP=1
 998     INTERACTIVE=1       # 0 = on, 1 = off (For input file mode)
 999     DEL_OLD_PROFILE=0   # 0 (default), 1 = delete old profile.
1000 
1001     # idsconfig specific variables.
1002     INPUT_FILE=""
1003     OUTPUT_FILE=""
1004     LDAP_ENABLE_SHADOW_UPDATE="FALSE"
1005     NEED_PROXY=0        # 0 = No Proxy,    1 = Create Proxy.
1006     NEED_ADMIN=0        # 0 = No Admin,    1 = Create Admin.
1007     NEED_HOSTACL=0      # 0 = No Host ACL, 1 = Create Host ACL.




 967     PROG=`basename $0`  # Program name
 968     PID=$$              # Program ID
 969     VERB='> /dev/null 2>&1'   # NULL or "> /dev/null"
 970     ECHO="/bin/echo"    # print message on screen
 971     EVAL="eval"         # eval or echo
 972     EGREP="/usr/bin/egrep"
 973     GREP="/usr/bin/grep"
 974     DEBUG=0             # Set Debug OFF
 975     BACKUP=no_ldap      # backup suffix
 976     HOST=""             # NULL or <hostname>
 977     NAWK="/usr/bin/nawk"
 978     RM="/usr/bin/rm"
 979     WC="/usr/bin/wc"
 980     CAT="/usr/bin/cat"
 981     SED="/usr/bin/sed"
 982     MV="/usr/bin/mv"
 983 
 984     DOM=""              # Set to NULL
 985     # If DNS domain (resolv.conf) exists use that, otherwise use domainname.
 986     if [ -f /etc/resolv.conf ]; then
 987         DOM=`/usr/bin/grep -i -E '^domain|^search' /etc/resolv.conf \
 988             | awk '{ print $2 }' | tail -1`
 989     fi
 990 
 991     # If for any reason the DOM did not get set (error'd resolv.conf) set
 992     # DOM to the domainname command's output.
 993     if [ "$DOM" = "" ]; then
 994         DOM=`domainname`        # domain from domainname command.
 995     fi
 996 
 997     STEP=1
 998     INTERACTIVE=1       # 0 = on, 1 = off (For input file mode)
 999     DEL_OLD_PROFILE=0   # 0 (default), 1 = delete old profile.
1000 
1001     # idsconfig specific variables.
1002     INPUT_FILE=""
1003     OUTPUT_FILE=""
1004     LDAP_ENABLE_SHADOW_UPDATE="FALSE"
1005     NEED_PROXY=0        # 0 = No Proxy,    1 = Create Proxy.
1006     NEED_ADMIN=0        # 0 = No Admin,    1 = Create Admin.
1007     NEED_HOSTACL=0      # 0 = No Host ACL, 1 = Create Host ACL.