fiss-linux

Some linux scripts for fiss
Log | Files | Refs | LICENSE

98-sbin-merge.sh (317B)


      1 if [ -d /usr/sbin -a ! -L /usr/sbin ]; then
      2 	for f in /usr/sbin/*; do
      3 		if [ -f $f -a ! -L $f ]; then
      4 			msg "Detected $f file, can't create /usr/sbin symlink."
      5 			return 0
      6 		fi
      7 	done
      8 	msg "Creating /usr/sbin -> /usr/bin symlink, moving existing to /usr/sbin.old"
      9 	mv /usr/sbin /usr/sbin.old
     10 	ln -sf bin /usr/sbin
     11 fi