From owner-freebsd-questions Tue May 27 03:12:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA06338 for questions-outgoing; Tue, 27 May 1997 03:12:58 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA06330 for ; Tue, 27 May 1997 03:12:53 -0700 (PDT) Received: by mail.EUnet.hu, id MAA14117; Tue, 27 May 1997 12:12:46 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id KAA00340; Tue, 27 May 1997 10:32:02 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199705270832.KAA00340@CoDe.hu> Subject: Re: Windows 383spart.par as SWAP slice? -Reply To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 27 May 1997 10:32:02 +0200 (MET DST) Cc: rewt@i-Plus.net In-Reply-To: <199705261954.PAA01972@radford.i-plus.net> from Troy Settle at "May 26, 97 03:57:09 pm" X-Mailer: ELM [version 2.4ME+ PL11 (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 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) 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. 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"