From owner-freebsd-questions Tue May 27 04:20:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA08583 for questions-outgoing; Tue, 27 May 1997 04:20:52 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA08577 for ; Tue, 27 May 1997 04:20:46 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id OAA11875; Tue, 27 May 1997 14:19:37 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma011872; Tue May 27 14:19:11 1997 Message-ID: <338AC314.235B@barcode.co.il> Date: Tue, 27 May 1997 14:18:44 +0300 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Zahemszky Gabor CC: FreeBSD questions , rewt@i-Plus.net Subject: Re: Windows 383spart.par as SWAP slice? -Reply References: <199705270832.KAA00340@CoDe.hu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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...) > 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" Nadav