Ok, I'll work on new openbox+xfce version with 3 boot methods.fredx181 wrote:
Just an idea:
Two versions of DebianDog in one thread, your version with Icewm, Jwm and my openbox/xfce version but then with the exact same setup (choice for live-boot and porteus-boot)
I like the idea very much, Fred, but DebianDog has 3 boot methods now. If you don't mind to do the same for Porteus-Wheezy it will be great. Even if you include only 2 boot options I think it will be OK.
I understand that adding backports kernel is separate module and will not add more space to the iso and there doesn't need to be changed anything for it in the system setup, right?
I looked at it in live.cfg and the menu.lst entries in debdog-install, tested some, should all be ok!Fred needs it to check the current boot methods and the changes in debdog-install for the menu.lst
As I said I needed to change progress-bar code in some scripts, attached; new-scripts.zip.
In debdog-install I also added warning/question in case "directory to install to" (live) already exists.
Because it's hard to find any working progress-bar script for Xdialog on the net, I'd like to share code of progess-bar for copying contents of source directory to destination directory:
Code: Select all
#!/bin/bash
SRC="${1%/}"
DEST="${2%/}"
running(){ ps $1 | grep $1 >/dev/null; }
TOTAL=$(du -cbs --apparent-size "$SRC"/* | grep total | awk '{print $1}')
cp -a "$SRC"/* "$DEST" &
CPPID=$!
trap "kill $CPPID" 2 15
(
while running $CPPID; do
COPY=$(du -cbs --apparent-size "$DEST"/* 2> /dev/null | grep total | awk '{print $1}')
PERC=$((COPY*100/TOTAL))
echo $PERC
sleep 1
done
echo 100
) | Xdialog --title "Copy directory" --gauge " Copying files to "$DEST"... " 7 70 0
Code: Select all
progress <source-directory> <destination-directory>