On Mon, Feb 07, 2000 at 01:04:27PM +0100, Luigi Rizzo wrote:
> and the like. On a recent -current snap, this returns
> 
>       ufs:fd0a        ....
> 
> I used the previous behaviour in picobsd's rc to mount
> the file system from the boot device,
> 
>       set `df /` ; dev="/dev/$8"
>       echo "Reading /etc from ${dev}..."
>       mount -o rdonly ${dev} /mnt
> 
> unfortunately the "ufs:" prefix breaks the above code.
> Any simple shell trick to parse/remove the ufs: prefix ?
> Note, i cannot use tr, basename or other progs, they are just not there!

How about dev="/dev/${8#*:}" ?

-- 
Andrew


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to