Bash syntax question for LiveCD (setenv.sh)

Andrew Benton b3nt at ukonline.co.uk
Fri Feb 10 03:41:31 PST 2006


Niki Kovacs wrote:
> Hi,
> 
> I'm taking up LFS again after a few weeks break. I'm following the hint for 
> the LiveCD. Among other things, I'd like setenv.sh to test for the presence 
> of the /tools symlink before creating it. Like this:
> 
> Does the symlink /tools exist? 
> 
> No --> create it.
> 
> Now what would that look like in Bash syntax?

Why not just use the -f flag (force) and create it anyway?

ln -sfv $LFS/tools /

Andy



More information about the lfs-support mailing list