jedi0473
Group: Members
Posts: 1
Joined: May 2004 |
|
Posted: May 18 2004,00:02 |
|
hi i would like to use the script that permits to create your own dsl but i dont have any idea bout where to start, so please give some idea. where this script have to be placed and what do i have to change?
thank u PS. send me a pm please
#!/bin/sh . /etc/init.d/dsl-functions
echo echo "${RED}Damn Small Linux ${WHITE}remaster ${BLUE}myDSL.${NORMAL}" echo "${YELLOW}No responsibility for data loss or hardware damage!${NORMAL}" echo " " echo "You must have two working directories large enough to hold the image file," echo "and desired modules. You must also have a cdwriter installed." echo echo "If your boot CD and CD writer are the same device then you should" echo "be running with the ${RED}toram${NORMAL} option." echo echo "Later you will be prompted to remove the DSL cdrom." echo
# read source directory from user echo -n "${CYAN}Enter the directory to hold image and modules.${WHITE}(EXAMPLE: ${YELLOW}/mnt/master): ${NORMAL}" read SOURCE if [ -z "$SOURCE" ] ; then echo "No directory chosen. The script will be terminated." exit 1 fi if [ ! -d $SOURCE ]; then echo "Directory not found. The script will be terminated." exit 1 fi
# read target directory from user echo -n "${CYAN}Enter the directory to hold the new iso.${WHITE}(EXAMPLE: ${YELLOW}/mnt/iso/): ${NORMAL}" read TARGET if [ -z "$TARGET" ] ; then echo "No directory chosen. The script will be terminated." exit 1 fi if [ ! -d $TARGET ]; then echo "Directory not found. The script will be terminated." exit 1 fi
# read cdwriter address from user echo -n "${CYAN}Enter the cdwriter address. ${WHITE}(EXAMPLE: ${YELLOW}0,0,0): ${NORMAL}" read ADDRESS if [ -z "$ADDRESS" ] ; then echo "No address chosen. Using 0,0,0" ADDRESS="0,0,0" fi
# read cdwriter speed from user echo -n "${CYAN}Enter the cdwriter speed. ${WHITE}(EXAMPLE: ${YELLOW}4): ${NORMAL}" read SPEED if [ -z "$SPEED" ] ; then echo "No speed chosen. Using 4." SPEED="4" fi
echo "${BLUE}Copying DSL image for remastering...${NORMAL}" cp -Rp /cdrom/* "$SOURCE" sync;sync
echo "${RED}Now open another xterm or alternate console and " echo "copy your desired modules to ${MAGENTA}$SOURCE. ${NORMAL}" echo "When you are done, and ready to begin burning the CD," echo -n "remove the DSL cd and load blank CD then enter OK: " read ans if [ $ans != "OK" ]; then echo "User aborted script." exit 1 fi
echo "${BLUE}Buring mydsl cdrom...${NORMAL}" mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -o $TARGET/mydsl.iso $SOURCE sync sync cdrecord -v speed=$SPEED dev=$ADDRESS -data $TARGET/mydsl.iso if [ $? == 0 ]; then echo "${YELLOW}mydsl burn completed.${NORMAL}" else echo "${RED}An error occured while trying to burn the CD.${NORMAL}" fi[CODE]
|