diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2007-10-26 20:16:02 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2007-10-26 20:16:02 +0000 |
commit | ee4ef808b3270c2c1fe74c3876ac5f5e4650e4ea (patch) | |
tree | d5405436b924f60fd1bd0c7392c243d5c1973a6c /print/hplip/pkg-install | |
parent | 903217350f7e9cdcaaed499118637b8c05d67c6d (diff) |
Notes
Diffstat (limited to 'print/hplip/pkg-install')
-rw-r--r-- | print/hplip/pkg-install | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/print/hplip/pkg-install b/print/hplip/pkg-install index 79d5edf4ecf6..e6f2dc26c7ed 100644 --- a/print/hplip/pkg-install +++ b/print/hplip/pkg-install @@ -8,32 +8,10 @@ DLLFILE=${PKG_PREFIX}/etc/sane.d/dll.conf case $2 in POST-INSTALL) - if pw user show "${USER}" 2>/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." - else - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -d /nonexistent -s /sbin/nologin -c "HPLIP Server" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi - fi echo "hpaio" >> ${DLLFILE} ;; POST-DEINSTALL) - if pw user show "${USER}" 2>/dev/null; then - if pw userdel ${USER}; then - echo "Removed user \"${USER}\"." - else - echo "Removing user \"${USER}\" failed..." - exit 1 - fi - else - echo "User \"${USER}\" doesn't exist!" - fi cp ${DLLFILE} ${DLLFILE}.orig cat ${DLLFILE}.orig | grep -v hpaio > ${DLLFILE} rm ${DLLFILE}.orig |