Form1 Form1 0 0 380 380 SLAX installer @StatusBar1.setText("Wait please, searching for SLAX CD...") @ComboBox1.insertItems(@exec('cat /proc/mounts |grep -v loop |grep "/mnt" |grep -v "/mnt/live" |grep -v "/mnt/_" |grep -v "/mnt/cdrom_" |cut -d " " -f 2 |grep -v "/proc" | egrep -v "^/dev|^/sys|^proc|^/\$"'),0) @ComboBox2.insertItems(@exec('fdisk -l |egrep -o "/dev/[a-z]+" | uniq'),0) @ComboBox3.insertItems(@exec('find /mnt/live/memory -maxdepth 2 -name livecd.sgn |xargs -r -n 1 dirname'),0) @ComboBox3.insertItems(@exec('find /mnt -maxdepth 2 -name livecd.sgn |xargs -r -n 1 dirname'),0) @ComboBox3.insertItems(@exec('find /boot -maxdepth 1 -name livecd.sgn |xargs -r -n 1 dirname'),0) @StatusBar1.setText("Select target and click Go...") @CloseButton1.setVisible(false) ComboBox1 181 108 188 21 true @widgetText Layout14 10 70 150 100 unnamed 0 6 Label6_2 Source (SLAX CD): Label2 Install SLAX to: Label6 Write MBR to: ComboBox2 181 140 188 21 true @widgetText ComboBox3 181 76 188 21 true @widgetText ButtonGroup1 10 180 360 80 Installation method RadioButton2 10 20 275 19 Real (&3500 MB required) true exit @forEach(dir, @exec(ls -1 / | egrep -v "^dev" | egrep -v "^proc" | egrep -v "^mnt" | egrep -v "^boot" | egrep -v "^sys" | egrep -v "^tmp" )) @ProgressBar1.setMaximum(@dir_count) @StatusBar1.setText(copying /@dir ...) @exec(cp --preserve=all -R /@dir @ComboBox1/) @ProgressBar1.setText(@dir_index) @end @exec("mkdir -p @ComboBox1/{tmp,boot,mnt,dev,sys,proc}") @exec(cd @ComboBox1/ && cat etc/fstab |egrep -o "/mnt/[a-z0-9]+" | cut -b 2- |xargs mkdir) @exec("device=$(cat /proc/mounts |grep @ComboBox1 |cut -d " " -f 1) && echo "$device / auto defaults 1 1" >@ComboBox1/etc/fstab && cat /etc/fstab | grep -v $device >>@ComboBox1/etc/fstab") @exec("rm @ComboBox1/etc/mtab") @exec("cp @ComboBox3/boot/vmlinuz @ComboBox1/boot") @exec("cp --preserve -R /dev/null @ComboBox1/dev") @exec("cp --preserve -R /dev/console @ComboBox1/dev") @exec("mount -o bind /dev @ComboBox1/dev") @exec("mount -t proc proc @ComboBox1/proc") @exec(echo " boot = @ComboBox2 prompt timeout = 20 change-rules reset vga = normal image = /boot/vmlinuz root = current label = SLAX read-only " >@ComboBox1/etc/lilo.conf) @StatusBar1.setText("Synchronizing, wait please...") @exec("sync") @StatusBar1.setText("Installing boot loader LILO...") @exec("lilo -r @ComboBox1 -s /dev/null 2>/var/log/slax-lilo-install.log") @exec("umount @ComboBox1/dev") @exec("umount @ComboBox1/proc") Label5 30 40 275 29 - Install SLAX like real Linux, decompressed - to harddisk in desktop computer Layout12 10 270 360 63 unnamed 0 6 StatusBar1 ProgressBar1 1 0 ExecButton1 true 290 340 80 29 &Install @ExecButton1.setText("Wait...") @StatusBar1.setText("Counting all files, please wait...") @RadioButton2 @StatusBar1.setText("All done! click Close button.") @ExecButton1.setVisible(false) @CloseButton1.setVisible(true) GUI CloseButton1 290 340 80 29 &Close Label13 40 10 360 50 20 1 SLAX Live Installer ComboBox3 ComboBox1 ComboBox2 CloseButton1 ExecButton1 RadioButton2