tazlito diff tazlito @ rev 93

Remove obsolet addhacker
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 05 20:00:37 2009 +0100 (2009-03-05)
parents 99ede412a318
children a2da441d750f
line diff
     1.1 --- a/tazlito	Wed Feb 25 23:29:58 2009 +0100
     1.2 +++ b/tazlito	Thu Mar 05 20:00:37 2009 +0100
     1.3 @@ -87,7 +87,6 @@
     1.4    extract-distro  Extract an ISO to a directory and rebuild LiveCD tree.
     1.5    gen-distro      Generated a Live distro and ISO from a list of packages.
     1.6    clean-distro    Remove all files generated by gen-distro.
     1.7 -  addhacker       Add Linux User Hacker to the current distro.
     1.8    check-distro    Help to check if distro is ready to release.
     1.9    burn-iso        Burn ISO image to a cdrom using Wodim.\n"
    1.10  }
    1.11 @@ -739,7 +738,7 @@
    1.12  		#
    1.13  		check_root
    1.14  		if [ -d $ROOTFS ] ; then
    1.15 -			echo "A rootfs exist in : $DISTRO"
    1.16 +			echo -e "\nA rootfs exist in : $DISTRO"
    1.17  			echo -e "Please clean the distro tree or change directory path.\n"
    1.18  			exit 0
    1.19  		fi
    1.20 @@ -954,55 +953,6 @@
    1.21  		echo "================================================================================"
    1.22  		echo ""
    1.23  		;;
    1.24 -	addhacker)
    1.25 -		# Without /etc/passwd...
    1.26 -		#
    1.27 -		check_root
    1.28 -		echo ""
    1.29 -		echo -e "\033[1mAdduser hacker to :\033[0m $ROOTFS"
    1.30 -		echo "================================================================================"
    1.31 -		if [ ! -d "$ROOTFS/etc" ] ; then
    1.32 -			echo -e "\nUnable to find : $ROOTFS/etc"
    1.33 -			echo -e "Users and passwords config files will not be found.\n"
    1.34 -			exit 0
    1.35 -		fi
    1.36 -		# Go for echoing on configuration files if any hacker was found.
    1.37 -		#
    1.38 -		if ! grep -q hacker $root/etc/passwd; then
    1.39 -			echo -n "Configuring $ROOTFS/etc..."
    1.40 -			echo 'hacker:x:500:500:Linux User,,,:/home/hacker:/bin/ash' >> $ROOTFS/etc/passwd
    1.41 -			echo 'hacker::13646:0:99999:7:::' >> $ROOTFS/etc/shadow
    1.42 -			echo 'hacker:x:500:' >> $ROOTFS/etc/group
    1.43 -			echo 'hacker:!::' >> $ROOTFS/etc/gshadow
    1.44 -			status
    1.45 -		else
    1.46 -			echo "Hacker is already in : $ROOTFS/etc/passwd"
    1.47 -		fi
    1.48 -		# Hacker can listen to music
    1.49 -		#
    1.50 -		if grep -q audio $root/etc/group; then
    1.51 -			if ! grep -q "audio:x:20:hacker" $root/etc/group; then
    1.52 -				sed -i s/'audio:x:20:'/'audio:x:20:hacker'/ $root/etc/group
    1.53 -			fi
    1.54 -		fi
    1.55 -		# /home/hacker directories.
    1.56 -		#
    1.57 -		echo -n "Creating default directories... "
    1.58 -		mkdir -p $fs/home/hacker/Documents \
    1.59 -			$fs/home/hacker/Downloads \
    1.60 -			$fs/home/hacker/Templates \
    1.61 -			$fs/home/hacker/.local/bin \
    1.62 -			$fs/home/hacker/.local/share
    1.63 -		status
    1.64 -		# Change permissions.
    1.65 -		#
    1.66 -		echo -n "Chmoding all files in /home/hacker..."
    1.67 -		chown -R 500.500 $ROOTFS/home/hacker
    1.68 -		status
    1.69 -		echo "================================================================================"
    1.70 -		echo "Linux User Hacker have an account in the distro."
    1.71 -		echo ""
    1.72 -		;;
    1.73  	check-distro)
    1.74  		# Check for a few LiveCD needed files not installed by packages.
    1.75  		#