|
|
@ -37,38 +37,41 @@ |
|
|
|
- rm $i;
|
|
|
|
- done
|
|
|
|
-fi
|
|
|
|
--- ./postinstall.linux.sh.orig Sat Nov 10 16:27:13 2001
|
|
|
|
+++ ./postinstall.linux.sh Sat Nov 10 16:43:34 2001
|
|
|
|
@@ -57,60 +57,3 @@
|
|
|
|
fix "${LPD_CONF_PATH}" "${DESTDIR}${LPD_CONF_PATH}" |
|
|
|
fix "${PRINTCAP_PATH}" "${DESTDIR}${PRINTCAP_PATH}" |
|
|
|
--- ./postinstall.linux.sh.orig 2003-11-14 13:36:02.000000000 -0300
|
|
|
|
+++ ./postinstall.linux.sh 2003-11-29 10:26:57.000000000 -0300
|
|
|
|
@@ -68,66 +68,3 @@
|
|
|
|
${INSTALL} -m 755 $f `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd |
|
|
|
fi |
|
|
|
|
|
|
|
-if [ "X$MAKEPACKAGE" != "XYES" -a "$INIT" != no ] ; then
|
|
|
|
- echo "Configuring startup scripts"
|
|
|
|
- echo "Running startup scripts"
|
|
|
|
- if [ ! -f $init ] ; then
|
|
|
|
- echo "Missing $init";
|
|
|
|
- exit 1
|
|
|
|
- fi
|
|
|
|
- if [ -f /etc/redhat-release -a -f /sbin/chkconfig ] ; then
|
|
|
|
- echo "RedHat Linux - running chkconfig"
|
|
|
|
- if [ -f /sbin/chkconfig ] ; then
|
|
|
|
- echo "Stopping CUPS server"
|
|
|
|
- service cups stop || /bin/true
|
|
|
|
- service cups-lpd stop || /bin/true
|
|
|
|
- echo "Stopping LPD server"
|
|
|
|
- service lpr stop || service lprng stop || service lpd stop || /bin/true
|
|
|
|
- echo "running chkconfig"
|
|
|
|
- (
|
|
|
|
- /sbin/chkconfig lpr off
|
|
|
|
- /sbin/chkconfig --del lpr
|
|
|
|
- /sbin/chkconfig lpr off
|
|
|
|
- /sbin/chkconfig --del lpr
|
|
|
|
- /sbin/chkconfig lpd off
|
|
|
|
- /sbin/chkconfig lprng off
|
|
|
|
- /sbin/chkconfig --del lprng
|
|
|
|
- /sbin/chkconfig cups off
|
|
|
|
- /sbin/chkconfig cups-lpd off
|
|
|
|
- /sbin/chkconfig `basename $init` off
|
|
|
|
- )
|
|
|
|
- echo "Stopping server"
|
|
|
|
- kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
|
|
|
|
- sleep 2
|
|
|
|
- echo "Checking Printcap"
|
|
|
|
- ${SBINDIR}/checkpc -f
|
|
|
|
- echo "Installing Printer Startup Scripts"
|
|
|
|
- /sbin/chkconfig --add lprng
|
|
|
|
- /sbin/chkconfig --list lprng
|
|
|
|
- /sbin/chkconfig lprng on
|
|
|
|
- echo "Running LPRng Startup Scripts"
|
|
|
|
- /sbin/chkconfig --add `basename $init`
|
|
|
|
- /sbin/chkconfig --list `basename $init`
|
|
|
|
- /sbin/chkconfig `basename $init` on
|
|
|
|
- echo "Starting Printer"
|
|
|
|
- sh $init start
|
|
|
|
- service `basename $init` start
|
|
|
|
- echo "Printer Started"
|
|
|
|
- else
|
|
|
|
- echo "Stopping server"
|
|
|
@ -77,25 +80,28 @@ |
|
|
|
- echo "Checking Printcap"
|
|
|
|
- ${SBINDIR}/checkpc -f
|
|
|
|
- echo "Starting Printer"
|
|
|
|
- ${LPD_PATH}
|
|
|
|
- sh `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd start
|
|
|
|
- echo "Printer Started"
|
|
|
|
- m=`dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd
|
|
|
|
- cat <<EOF
|
|
|
|
-#
|
|
|
|
-# You will have to install the run time startup files by hand.
|
|
|
|
-# The $init file contains the standard startup/shutdown sequence.
|
|
|
|
-# You usually need to put in links to this file in /etc/rc.d/rcX.d
|
|
|
|
-# to have it executed by the appropriate run level startup/shutdown
|
|
|
|
-# script.
|
|
|
|
-# The $m file contains the standard startup/shutdown code.
|
|
|
|
-# You should put this file in the file in common set of rc startup
|
|
|
|
-# scripts and then make symbolic links to it from the run level
|
|
|
|
-# directories.
|
|
|
|
-#
|
|
|
|
-# You can use the following a template for your installation
|
|
|
|
-#
|
|
|
|
- ln -s ../init.d/lprng /etc/rc0.d/K60lprng
|
|
|
|
- ln -s ../init.d/lprng /etc/rc1.d/K60lprng
|
|
|
|
- ln -s ../init.d/lprng /etc/rc2.d/S60lprng
|
|
|
|
- ln -s ../init.d/lprng /etc/rc3.d/S60lprng
|
|
|
|
- ln -s ../init.d/lprng /etc/rc4.d/S60lprng
|
|
|
|
- ln -s ../init.d/lprng /etc/rc5.d/S60lprng
|
|
|
|
- ln -s ../init.d/lprng /etc/rc6.d/K60lprng
|
|
|
|
-#
|
|
|
|
- initdir=/etc/rc.d
|
|
|
|
- cp `dirname ${DESTDIR}${LPD_CONF_PATH}`/lpd \${initdir}/lpd
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc0.d/K60lprng
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc1.d/K60lprng
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc2.d/S60lprng
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc3.d/S60lprng
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc4.d/S60lprng
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc5.d/S60lprng
|
|
|
|
- ln -s ../init.d/lpd \${initdir}/rc6.d/K60lprng
|
|
|
|
-
|
|
|
|
-EOF
|
|
|
|
- fi;
|
|
|
|