view tools/fix_lib_links.sh @ 187:f3b340294261

fix pin name (wps->reset)
author ray@terran.dlink.ua
date Tue, 02 Aug 2011 00:25:22 +0300
parents 91ceb933eeff
children
line wrap: on
line source
#!/bin/sh



for link in `find . -type l` ; do 
	lk=`readlink $link`; 
	TEST=`echo $lk | sed -E "s/^(.).*/\\1/"` ;
	if [ "x${TEST}" = "x/" ] ; then
		new=`echo $lk | sed "s/^\//\.\.\/\.\.\//"`; 
		echo ln -sf $new $link ;
		ln -sf $new $link ;
	fi
done