From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Comm] Re: CUPS From: Yura Kalinichenko To: AltLinux Community Maillist In-Reply-To: <200409021237.24168.kosha@kp.ru> References: <200409020952.10895.kosha@kp.ru> <1094113027.2834.2.camel@iceb> <20040902081719.GR31156@osdn.org.ua> <200409021237.24168.kosha@kp.ru> Content-Type: multipart/mixed; boundary="=-3reysS1armzFMgUFG/L+" Organization: iceB Software Group Message-Id: <1094118526.2831.21.camel@iceb> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1- (1.2.1-alt3) Date: 02 Sep 2004 12:48:46 +0300 X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 09:40:44 -0000 X-List-Received-Date: Thu, 02 Sep 2004 09:40:44 -0000 Archived-At: List-Archive: List-Post: --=-3reysS1armzFMgUFG/L+ Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: quoted-printable =F7 =FE=D4=D7, 02.09.2004, =D7 11:37, Korshunov Ilya =CE=C1=D0=C9=D3=C1=CC= : > =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 =FE=C5=D4=D7=C5=D2=C7 02 =F3=C5=CE= =D4=D1=C2=D2=D8 2004 12:17 Michael Shigorin =CE=C1=D0=C9=D3=C1=CC(a): > > On Thu, Sep 02, 2004 at 11:17:07AM +0300, Yura Kalinichenko wrote: > > > =F1 =C4=CC=D1 =D4=C1=CB=CF=C7=CF =D3=CC=D5=DE=C1=D1 =C4=C1=C0 =C0=DA= =C5=D2=C1=CD =CB=CE=CF=D0=CB=D5 "=F3=C2=D2=CF=D3 =D0=D2=C9=CE=D4=C5=D2=C1= ". > > > > =EB=C1=CB =C2=D9 =C5=C5 =CF=D0=C1=CB=C5=D4=C9=D4=D8?.. =F3=CB=D2=C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=CF=D3=D4=C1=CE=CF= =D7 =C9 =D0=C5=D2=C5=DA=C1=C7=D2=D5=DA=CB=D5 =CB=CF=CD=D0=D8=C0=D4=C5=D2=C1= . =F3=CB=D2=C9=D0=D4 =D0=D2=C9=DB=C9=D4 =CB =D0=C9=D3=D8=CD=D5. =F7 =D3=CC=D5= =DE=C1=C5 xdm =D7=D9=DA=CF=D7 =C5=C7=CF =D0=CF=CD=C5=DD=C1=C5=D4=D3=D1 =D7 /etc/X11/xdm/Xsetup_0 (=CF=C2=D2=C1=DA=C5=C3 =D4=C1=CB=D6=C5 =D0=D2=C9=DB= =C9=D4). =EB=C1=CB =C4=C5=CA=D3=D4=D7=CF=D7=C1=D4=D8 =D7 =CC=D5=DE=C1=C5 =C4=D2=D5=C7=C9=C8 dm - =CE=C5 =D0=CF=CC=D8=DA=D5=C0, =CE=C5 =DA=CE=C1=C0= . --=20 Yura Kalinichenko --=-3reysS1armzFMgUFG/L+ Content-Disposition: attachment; filename=xshut Content-Type: text/x-sh; name=xshut; charset=KOI8-U Content-Transfer-Encoding: quoted-printable #!/bin/sh x0=3D187 y0=3D152 DIALOG=3DXdialog TITLE=3D"=F5=D0=D2=C1=D7=CC=C5=CE=C9=C5 =CB=CF=CD=D0=D8=C0=D4=C5=D2=CF=CD= " sigs=3D"1 2 3 5 10 13 15" tf=3D/tmp/xshut.$$ trap abort $sigs if [ -z "$DISPLAY" ]; then export DISPLAY=3D:0 fi abort() { rm -f $tf exit 1 } set_printers_list() { # PRINTERS=3D"iceb hpdj" PRINTERS=3D`lpstat -v | grep -e " usb:/" -e " parallel:/" | cut -d: -f= 1 | awk '{print $3}'` } reset_printers() { local title title=3D"Printer reset" set_printers_list set -- $PRINTERS if [ $# -eq 0 ]; then $DIALOG --title "$title" --msgbox "=EE=C1 =DC=D4=CF=CD =CB=CF=CD=D0= =D8=C0=D4=C5=D2=C5 =CE=C5 =D5=D3=D4=C1=CE=CF=D7=CC=C5=CE\n=CE=C9 =CF=C4=C9= =CE =D0=D2=C9=CE=D4=C5=D2 - =D3=C2=D2=C1=D3=D9=D7=C1=D4=D8 =CE=C5=DE=C5=C7= =CF." 8 40 return 1 elif [ $# -eq 1 ]; then PRINTERS=3D$1 else set -- $PRINTERS menuh=3D$# if [ "$DIALOG" =3D "Xdialog" ]; then dh=3D12 max_menuh=3D20 else dh=3D8 max_menuh=3D17 fi if [ $menuh -gt $max_menuh ]; then menuh=3D$max_menuh fi h=3D`expr $menuh + $dh` str=3D"_ =F7=D3=C5 on" for lp in $PRINTERS ; do str=3D"$str $lp . off" done if $DIALOG --title "$title" --begin $x0 $y0 --separate-output \ --checklist "=EB=C1=CB=CF=CA =D0=D2=C9=CE=D4=C5=D2 =D3=C2=D2=C1=D3=D9=D7= =C1=D4=D8:" \ $h 30 $menuh $str 2> $tf ; then list=3D`cat $tf` if [ "$list" \!=3D "_" ]; then PRINTERS=3D"$list" fi else return 1 fi fi set -- $PRINTERS while [ $# -gt 0 ] ; do $DIALOG --title "$title"--begin $x0 $y0 --no-buttons --infobox "=F3= =C2=D2=C1=D3=D9=D7=C1=C5=CD $1..." 3 30 lprm -P$1 - lpadmin -p $1 -E shift done return 0 } #main #export XDIALOG_HIGH_DIALOG_COMPAT=3D1 #export LC_CTYPE=3Duk_UA.KOI8-U export LC_CTYPE=3Dru_RU.KOI8-R #--fixed-font --no-cancel=20 #--rc-file /usr/local/etc/xshut.rc=20 #echo $$ > /var/run/xshut.pid while [ 1 ]; do mode=3D`Xdialog --stdout \ --title Shutdown --no-tags --no-cancel \ --radiolist "$TITLE" ${x0}x${y0}-1-40 2 \ p "=F3=C2=D2=CF=D3 =D0=D2=C9=CE=D4=C5=D2=CF=D7" on \ h "=F7=D9=CB=CC=C0=DE=C9=D4=D8" off \ r "=F0=C5=D2=C5=DA=C1=C7=D2=D5=DA=C9=D4=D8" off` if [ $? -eq 0 ]; then case "$mode" in p) reset_printers ;; h|r) shutdown -$mode now break ;; *) break=20 ;; esac else break fi done rm -rf $tf --=-3reysS1armzFMgUFG/L+ Content-Disposition: attachment; filename=Xsetup_0 Content-Type: text/x-sh; name=Xsetup_0; charset=KOI8-U Content-Transfer-Encoding: 7bit #!/bin/sh # (C) MandrakeSoft # Chmouel Boudjnah # Source function library. . /etc/init.d/functions SourceIfNotEmpty /etc/profile.d/kde.sh [ -n "$KDEDIR" ] || KDEDIR=/usr if [ -x $KDEDIR/bin/kdmdesktop ];then # /usr/bin/kdmdesktop # Commented above line and added next line because of kdedesktop issues # fixes background. /usr/X11R6/bin/xsetroot -solid "#666699" else /usr/X11R6/bin/xsetroot -solid "#666699" /usr/X11R6/bin/xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail fi ExecIfExecutable /etc/X11/xinit/fixkeyboard /usr/local/bin/xshut & freetemp xbanner --=-3reysS1armzFMgUFG/L+--