Skip to Content.
Sympa Menu

baslinux - Re: [BL] sh conditionals etc

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: 3aoo-cvfd AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] sh conditionals etc
  • Date: Sun, 23 May 2004 12:12:06 +1200

Sheldon Isaac wrote:
>
> Please help with this script,
>
> it doesn't work right under BL3.21,

> #!/bin/bash

First, change /bin/bash to /bin/sh

> #---------------------
> # /usr/local/bin/nfs
> # -------------------
>
> case $1 in
> k)
> umount /hd/fic
> ;;
> "")
> mount -w 192.168.1.1:/ /hd/fic

It probably doesn't make any difference, but I suggest
you replace "-w" with "-t nfs"

> esac
>
> if [ `pidof rpciod` > 0 ]

I'm not quite sure what BL3 will do about that line.
If you continue to have problems, that's where we
should look.

> then
> echo FIC mounted
> PS1="FICon \w> "
> else
> echo FIC not mounted
> PS1="\w> "
> fi
>
> export PS1
>
> # ------end of script --------

Try the suggested changes and see if that helps. Please
report back if you continue to have problems.

Cheers,
Steven




Archive powered by MHonArc 2.6.24.

Top of Page