PREIN
/bin/sh
# Create the firebird group if it doesn't exist grep -q firebird /etc/group || /usr/sbin/groupadd -r firebird || true grep -q firebird /etc/passwd || /usr/sbin/useradd -d / -g firebird -s /sbin/sh -r firebird || true # Add gds_db to /etc/services if needed FileName=/etc/services newLine="gds_db 3050/tcp # Firebird SQL Database Remote Protocol" oldLine=`grep "^gds_db" $FileName` if [ -z "$oldLine" ]; then echo $newLine >> $FileName fi