diff --git a/install/calculate b/install/calculate index cd0b42e..a8473f1 100755 --- a/install/calculate +++ b/install/calculate @@ -674,6 +674,27 @@ sub checkerrors{ beep(); return ""; } } + #---------------------------------------------------------------------- + # Установим значение переменной в ram, в случае если установка профиля + # производится в оперативную память (настройка сеанса CDROM), а также + # load - носитель в значение ram в случае загрузки с CD/DVD + # $data{location} + # $data{scratch} + #---------------------------------------------------------------------- + $data{location} = ""; + $data{load} = ""; + if(`mount | grep "/dev/loop/0 on / type"` || + `mount | grep "/dev/loop0 on / type"` || + `mount | grep "/dev/loop0 on /newroot/mnt/livecd type"` + ){ + if(defined $data{arg}{'profile'}){ + $data{location} = "ram"; + } + $data{load} = "ram"; + } + if(`mount | grep /mnt/scratch`){$data{scratch} = "on";} + else{$data{scratch} = "off"} + #---------------------------------------------------------------------- # Путь к архиву образа #---------------------------------------------------------------------- @@ -896,27 +917,6 @@ sub checksystem{ $data{squash_cur} = "livecd.squashfs.".$revsquash; } - #---------------------------------------------------------------------- - # Установим значение переменной в ram, в случае если установка профиля - # производится в оперативную память (настройка сеанса CDROM), а также - # load - носитель в значение ram в случае загрузки с CD/DVD - # $data{location} - # $data{scratch} - #---------------------------------------------------------------------- - $data{location} = ""; - $data{load} = ""; - if(`mount | grep "/dev/loop/0 on / type"` || - `mount | grep "/dev/loop0 on / type"` || - `mount | grep "/dev/loop0 on /newroot/mnt/livecd type"` - ){ - if(defined $data{arg}{'profile'}){ - $data{location} = "ram"; - } - $data{load} = "ram"; - } - if(`mount | grep /mnt/scratch`){$data{scratch} = "on";} - else{$data{scratch} = "off"} - #---------------------------------------------------------------------- # Считаем параметры ядра #---------------------------------------------------------------------- @@ -4705,54 +4705,6 @@ sub update_profile{ $data{'chroot'} = ""; foreach(@{$data{setprof}}){profile($_);} -# #обновим конфигурацию -# printmes(gettext('Update modules')); printmes("\n"); -# -# printmes(" ".gettext('Run')); printmes(" env-update..."); -# if(system "/usr/sbin/env-update &>/dev/null"){ -# printmes(" ".gettext('error').".\n"); return ""; -# }else{ -# printmes(" ".gettext('done')); printmes(".\n"); -# } -# printmes(" ".gettext('Run')); printmes(" source /etc/profile..."); -# if(system "source /etc/profile &>/dev/null"){ -# printmes(" ".gettext('error').".\n"); return ""; -# }else{ -# printmes(" ".gettext('done')); printmes(".\n"); -# } -# printmes(" ".gettext('Run')); printmes(" update-modules..."); -# if(system "/sbin/update-modules &>/dev/null"){ -# printmes(" ".gettext('error').".\n"); return ""; -# }else{ -# printmes(" ".gettext('done')); printmes(".\n"); -# } -# if($ENV{TERM} eq 'linux'){ -# printmes(" ".gettext('Run')); printmes(" keymaps restart..."); -# if(system "/etc/init.d/keymaps restart &>/dev/null"){ -# printmes(" ".gettext('error').".\n"); return ""; -# }else{ -# printmes(" ".gettext('done')); printmes(".\n"); -# } -# } -# printmes(" ".gettext('Run')); printmes(" consolefont restart..."); -# if(system "/etc/init.d/consolefont restart &>/dev/null"){ -# printmes(" ".gettext('error').".\n"); return ""; -# }else{ -# printmes(" ".gettext('done')); printmes(".\n"); -# } - -# printmes(gettext('All done')); printmes("!\n"); - - - #наложим πатч - if( - $data{linuxver} eq '9.6' && - $data{load} eq 'ram' && - $data{calculate} eq 'CLD' - ){ - system "sed -i 's/kwrapper4 ksmserver \$KDEWM/ksmserver \$KDEWM/' /usr/bin/startkde"; - } - return 1; } diff --git a/install/profile/CLS/etc/runlevels/boot/wicd b/install/profile/CLS/etc/runlevels/boot/wicd deleted file mode 120000 index dfb4552..0000000 --- a/install/profile/CLS/etc/runlevels/boot/wicd +++ /dev/null @@ -1 +0,0 @@ -etc/init.d/wicd \ No newline at end of file diff --git a/install/profile/desktop/etc/wicd/ip-down.sh b/install/profile/desktop/etc/wicd/ip-down.sh?linuxver<9.8 similarity index 100% rename from install/profile/desktop/etc/wicd/ip-down.sh rename to install/profile/desktop/etc/wicd/ip-down.sh?linuxver<9.8 diff --git a/install/profile/desktop/etc/wicd/ip-up.sh b/install/profile/desktop/etc/wicd/ip-up.sh?linuxver<9.8 similarity index 100% rename from install/profile/desktop/etc/wicd/ip-up.sh rename to install/profile/desktop/etc/wicd/ip-up.sh?linuxver<9.8 diff --git a/install/profile/desktop/etc/wicd/wired-settings.conf b/install/profile/desktop/etc/wicd/wired-settings.conf?linuxver<9.8 similarity index 100% rename from install/profile/desktop/etc/wicd/wired-settings.conf rename to install/profile/desktop/etc/wicd/wired-settings.conf?linuxver<9.8