LINUX.ORG.RU

Зачем это нужно? На винде вроде решали всегда такие проблемы, на линуксах тоже... Зачем это поделие?

Promusik ★★★★★
()
Ответ на: комментарий от Promusik

Не всем нужно, чтобы поделие было нужно

goingUp ★★★★★
()
Ответ на: комментарий от Promusik

вроде решали всегда такие проблемы

Потому, что есть другие LiveCD с grub'ом. Но, кому-то полезным может оказаться именно этот.

saahriktu ★★★★★
() автор топика

Какая-то бесполезная хрень по-моему, лучше бы сделали образы grub core со сборкой всяких модулей и командной строкой, что бы можно было его залить на место слетевшего груба например.

Xenius ★★★★★
()

Мда ... чёто страшно такое запускать

$ cat grub.cfg
# Super Grub Disk - grub.cfg
# Copyright (C) 2009,2010,2011,2012,2013,2014,2015  Adrian Gibanel Lopez.
#
# Super Grub Disk is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Super Grub Disk is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Super Grub Disk.  If not, see <http://www.gnu.org/licenses/>.

insmod datehook

set sg2d_directory="${config_directory}/sgd"
export sg2d_directory
set afd_directory="${config_directory}"
export afd_directory

if [ "$MONTH" -eq "4" -a "$DAY" -eq "1" ] ; then
  configfile "${afd_directory}/afd2012.cfg"
else
  configfile "${sg2d_directory}/main.cfg"
fi

$ cat afd2012.cfg
# Super Grub Disk - April Fools joke starter
# Copyright (C) 2009,2010,2011,2012,2013,2014,2015  Adrian Gibanel Lopez.
#
# Super Grub Disk is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Super Grub Disk is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Super Grub Disk.  If not, see <http://www.gnu.org/licenses/>.
set sg2d_directory="${config_directory}/sgd"
export sg2d_directory
set afd_directory="${config_directory}"
export afd_directory

set saved_root=$root

insmod regexp
set stupidcounter=""
set maxstupidcounter="aaaaaaaa" # Iterate 8 times
for dev in (*); do
    # $device: parenthesis removed from $dev
    regexp -s device '\((.*)\)' $dev
    # $fstype: filesystem type identified
    probe -s fstype -f $dev
    # uuid: filesystem UUID
    probe -s uuid -u $dev
    
    set root=$device

    echo "Do you want to wipe $device ? (Yes/No)"
    sleep 2
    echo "Yes"
    for file in /*; do
      if test -d $file ; then
        echo "Deleting $file ..."
        echo "Deleting $file ......"
        echo "Deleting $file ........."
        echo "Deleting $file ......... Completed!"
        sleep 1
	set stupidcounter=a$stupidcounter
        if test $stupidcounter = $maxstupidcounter ; then
          set root=$saved_root
          configfile "${sg2d_directory}/afdmsg.cfg"
        fi
      fi
    done
done




set root=$saved_root
configfile "${afd_directory}/afdmsg.cfg"

$ 

Кто-то пользуется? Автор шутник или его взломали?

superuser ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.