3 echo -e "\033[37;41;1m W A R N I N G \033[0m"
4 echo "Copy these lines on line 28 into /etc/qinit.sysinit and save it"
7 for dev in `fdisk -l | awk '{print $1}' | grep dev`;
9 numero1=$(ls -l $dev | awk '{print $5}' | awk -F"," '{print $1}')
11 numero2=$(ls -l $dev | awk '{print $6}')
13 block=$(echo $dev | awk '{print $1}' | grep dev | cut -d/ -f3);
15 makenode_block="/bin/mknod -m 660 /dev/$block b $numero1 $numero2"
18 if [ -b /lib/udev/devices/$block ]; then
19 rm -r /lib/udev/devices/$block
23 /bin/cat /etc/qinittab > /etc/inittab
24 /bin/cat /etc/inittab.backup > /etc/inittab.original
28 echo "Your /etc/inittab was replaced by /etc/qinittab"
29 echo "Default copy inittab is saved in /etc/inittab.original"
39 echo -e "\033[37;41;1m W A R N I N G \033[0m"
40 echo -e "\033[37;41;1m Before the reboot you MUST restore the default inittab with: \033[0m"
41 echo " cp /etc/inittab.original /etc/inittab"