From owner-freebsd-questions Tue May 27 05:32:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA11147 for questions-outgoing; Tue, 27 May 1997 05:32:52 -0700 (PDT) Received: from horton.iaces.com (root@horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA11142 for ; Tue, 27 May 1997 05:32:50 -0700 (PDT) Received: (from proot@localhost) by horton.iaces.com (8.8.5/8.8.4) id HAA09502; Tue, 27 May 1997 07:32:22 -0500 (CDT) From: "Paul T. Root" Message-Id: <199705271232.HAA09502@horton.iaces.com> Subject: Re: Windows 383spart.par as SWAP slice? -Reply To: nadav@barcode.co.il (Nadav Eiron) Date: Tue, 27 May 1997 07:32:22 -0500 (CDT) Cc: zgabor@CoDe.hu, freebsd-questions@FreeBSD.ORG, rewt@i-Plus.net In-Reply-To: <338AC314.235B@barcode.co.il> from Nadav Eiron at "May 27, 97 02:18:44 pm" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In a previous message, Nadav Eiron said: > Zahemszky Gabor wrote: > > > > Reply to : How to use the M$ swap-file under FreeBSD? > > > > > When you shut down freebsd, you'll need to restore the drive for dos > > > to use: > > > turn swap off > > > copy the dos partition table back to the drive > > > copy the dos partition image file back to the slice > > > > Well, I've 2.1.5, and not 2.2.x, but my questions: > > a) can we swap off? (It's not in 2.1.x) > > No, and probably will not for some time. See man swapon (the BUGS > section...) This is too bad. You'd probably have to reboot into single user mode and to the restore to Windows mode. > > b) How can we run some software at shutdown-time? As I know, SYSV-type > > Unices can do it, but we cannot do that with 2.1.x. Oh, this is fairly easy. If you use shutdown, then the files ending in .sh in $local_startup are run with a stop option. > > Maybe these are new features of 2.2.x? > > > > Gabor > > -- > > #!/bin/ksh > > Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X" > Nadav > > -- "I want peace on Earth and good will toward men." "We're the United States Government, We don't do that sort of thing!" - Sneakers