V962 Branch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_cups@4360 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
a78c9571a0
59
etc/init.d/cups
Normal file
59
etc/init.d/cups
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#<Scriptname> des systemvinit prozesses
|
||||||
|
#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution
|
||||||
|
#(c) Rainmaker MultiMedia OHG
|
||||||
|
#
|
||||||
|
#$Author$
|
||||||
|
#$Date$
|
||||||
|
#$Revision$
|
||||||
|
#
|
||||||
|
#$Log$
|
||||||
|
#Revision 1.5 2003/04/19 08:08:07 kueller
|
||||||
|
#Nicht Funktionierende Optionen status und reload entfernt
|
||||||
|
#
|
||||||
|
#Revision 1.4 2003/01/06 18:02:09 kueller
|
||||||
|
#Lage des sleep kommandos hat sich geändert - script angepasst
|
||||||
|
#
|
||||||
|
#Revision 1.3 2002/01/11 15:43:31 kueller
|
||||||
|
#Pfade fuer aufruf von cups korrigiert
|
||||||
|
#
|
||||||
|
#Revision 1.2 2001/09/24 13:01:33 kueller
|
||||||
|
#Meldung welcher Dienst betroffen ist korriegiert -
|
||||||
|
#Die Meldung "Starting ...." ist ungenügend - erscheint jetzt als
|
||||||
|
#"Starting cupsd"
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2001/09/23 00:15:48 kueller
|
||||||
|
#Neustart wg. Datenverlust
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2001/09/07 12:15:54 dhofmann
|
||||||
|
#Cups Addon
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2001/08/08 10:02:32 kueller
|
||||||
|
#sysvinit addons
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
source /etc/init.d/functions
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo -n "Starting cupsd"
|
||||||
|
loadproc /usr/sbin/cupsd
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
echo -n "Stopping cupsd"
|
||||||
|
killproc /usr/sbin/cupsd
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
sleep 1
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|reload|restart|status}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
37
init/genpkg
Normal file
37
init/genpkg
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#genpkg script für cups
|
||||||
|
#(c) Rainmaker MultiMedia OHG
|
||||||
|
#
|
||||||
|
#$Author$
|
||||||
|
#$Date$
|
||||||
|
#$Revision$
|
||||||
|
#
|
||||||
|
#$Log$
|
||||||
|
#Revision 1.3 2003/02/01 17:25:09 kueller
|
||||||
|
#Runlevel Modifiziert. Cups startet nach X. Damit bekommt X das Keyboard nicht
|
||||||
|
#zugewiesen
|
||||||
|
#
|
||||||
|
#Revision 1.2 2001/10/17 10:09:45 kueller
|
||||||
|
#Rechtekorrektur für init script
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2001/09/23 00:15:48 kueller
|
||||||
|
#Neustart wg. Datenverlust
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
WDIR=`pwd`
|
||||||
|
cd etc/init.d
|
||||||
|
chmod 755 cups
|
||||||
|
mkdir rc{0,1,2,3,4,5,6}.d
|
||||||
|
for i in 0 1 6; do
|
||||||
|
cd rc$i.d
|
||||||
|
ln -s ../cups K05cups
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
for i in 2 3 4 5; do
|
||||||
|
cd rc$i.d
|
||||||
|
ln -s ../cups S60cups
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
cd $WDIR
|
||||||
|
mkdir -p var/log/cups var/spool/cups/tmp
|
44
tmp/postinstall
Normal file
44
tmp/postinstall
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $Source$
|
||||||
|
#
|
||||||
|
#(c) 2003 Harald Kueller, Germany
|
||||||
|
#This program is free software; you can redistribute it and/or
|
||||||
|
#modify ist under the terms of the GNU General Public License
|
||||||
|
#as published by the Free Software Foundation; either version
|
||||||
|
#2 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
#This program is distributed in the hope that it will be useful,
|
||||||
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
#You should have received a copy of the GNU General Public License
|
||||||
|
#along with this program; if not write to the Free Software Foundation,
|
||||||
|
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
#Script:
|
||||||
|
#Postinstallscript für cups. Treiber und Configuration funktionieren nur
|
||||||
|
#bei moderaten sicherheitseinstellungen unter /var/spool
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author$
|
||||||
|
#Datum der letzten Änderung: $Date$
|
||||||
|
#Version der Datei: $Revision$
|
||||||
|
#
|
||||||
|
#$Log$
|
||||||
|
#Revision 1.3 2006/07/04 10:47:45 kueller
|
||||||
|
#ROOTDIR wird nicht mehr benoetigt, da postinstall in chroot umgebung ausgefuehrt wird
|
||||||
|
#
|
||||||
|
#Revision 1.2 2004/05/31 15:30:49 kueller
|
||||||
|
#Fehler bei chmod anweisung - optionen muessen durch , getrennt werden
|
||||||
|
#
|
||||||
|
#Revision 1.1 2004/05/31 15:22:10 kueller
|
||||||
|
#Cups macht massive probleme wenn /var/spool falsch gesetzt ist. wird
|
||||||
|
#nun durch postinstall corrigiert
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
chmod g+rwx,o+rx /var/spool
|
Loading…
Reference in New Issue
Block a user