#! /bin/sh # Copyright (c) 2016, Dirk Krause # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # * Neither the name of the Dirk Krause nor the names of contributors may be # used to endorse or promote products derived from this software without # specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. # # IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ##### START OF CONFIGURATION SECTION ##### # # # GUI or CLI live system. # ----------------------- # Boolean flag, "yes" indicates a GUI live system, "no" a CLI live system. GUI="no" # Allow or deny installation of recommended packages # -------------------------------------------------- # Boolean flag, "yes" or "no". # Only used if GUI=no. Recommended value: yes. APTRECOMMENDS="yes" # Flag: Allow to run "apt-get -y update && apt-get -y upgrade" # ------------------------------------------------------------ # Set to "yes" or "no" to allow or deny a system upgrade before # building the live system. ALLOWUPGRADE="yes" # Flag: Allow installation of unsigned (self-made) packages # --------------------------------------------------------- # Set to "yes" or "no". # Only needed to install self-made package which are not signed. ALLOWUNSIGNEDPKG="no" # Flag: Allow to use firmware from "non-free" and "contrib". # ---------------------------------------------------------- # Set to "yes" to place non-free firmware files in the live system, # "no" to build a live system without non-free firmware files. # Some components in computers (mostly WiFi chips, but some ethernet and other # chips too) require firmware files to work. # ----- Start of opinion section, no legal advice. ----- # Unfortunately some firmware files are not available under a free license # allowing to distribute them together with GPL-licensed software. # If you configure the use of such non-free firmware files here, the resulting # live system may be undistributable (you can use it for your own purposes # but are not allowed to distribute it to other users). # ----- End of opinion section, no legal advice. ----- # ----- Start of disclaimer ----- # The section above is an opinion piece and does not contain legal advice. # You should consult a lawyer to obtain legal advice about the legal status # of distributing live systems containing non-free firmware files. # ----- End of disclaimer ----- ALLOWNONFREE="no" # Live system type. # ----------------- # One from: # hybrid for USB drives, CDROM or DVD # hdd for USB drives only # nfs for network boot DHCP/TFTP/NFS (requires NFSSERVER and NFSPATH). LIVETYPE="hybrid" # NFS server name for LIVETYPE=nfs. # --------------------------------- # Must be specified for LIVETYPE=nfs. # Recommendation: Use IP address. # NFSSERVER="nfs.my-domain.com" NFSSERVER="" # NFS root file system path for LIVETYPE=nfs. # ------------------------------------------- # Must be specified for LIVETYPE=nfs. # NFSPATH="/opt/nfs/netboot" NFSPATH="" # Flag: Configuration done. # ------------------------- # After adjusting the settings in this section, change this to "yes". CONFIGURED="no" # Directory for additional data # ----------------------------- # Leave empty to use the default /usr/local/livesys directory. # Use # DATADIR="-" # to skip copying additional data into the live system. DATADIR="" # MIRRORS TO USE WHEN BUILDING AND RUNNING THE LIVE SYSTEM # ======================================================== # Leave empty for automatic selection and/or defaults. # Mirror for bootstrapping # ------------------------ # Default: http://ftp.de.debian.org/debian/ # This is probably not a good choice for users from outside Europe. PARENTMIRRORBOOTSTRAP="" # Mirror used in the chroot stage # ------------------------------- # Default: $PARENTMIRRORBOOTSTRAP PARENTMIRRORCHROOT="" # Mirror for security updates used in the chroot stage # ---------------------------------------------------- # Default: http://security.debian.org/debian/ PARENTMIRRORCHROOTSECURITY="" # Mirror for package updates used in the chroot stage # --------------------------------------------------- # Default: PARENTMIRRORCHROOT PARENTMIRRORCHROOTUPDATES="" # Mirror for backports used in the chroot stage. # ---------------------------------------------- # Default: http://backports.debian.org/debian-backports/ PARENTMIRRORCHROOTBACKPORTS="" # Mirror used by the live system # ------------------------------ # Default: http://http.debian.net/debian/ PARENTMIRRORBINARY="" # Mirror for security updates used by the live system # --------------------------------------------------- # Default: http://security.debian.org/ PARENTMIRRORBINARYSECURITY="" # Mirror for packages updates used by the live system # --------------------------------------------------- # Default: PARENTMIRRORBINARY PARENTMIRRORBINARYUPDATES="" # Mirror for backports used by the live system # -------------------------------------------- # Default: http://backports.debian.org/debian-backports/ PARENTMIRRORBINARYBACKPORTS="" # Mirror to fetch Debian installer images from # -------------------------------------------- # Default: PARENTMIRRORBOOTSTRAP PARENTMIRRORDEBIANINSTALLER="" # Mirror used to bootstrap the derivative from # -------------------------------------------- # Default: http://ftp.de.debian.org/debian/ MIRRORBOOTSTRAP="" # Mirror used in the chroot stage to build the derivative # ------------------------------------------------------- # Default: MIRRORBOOTSTRAP MIRRORCHROOT="" # Mirror for security updates used in the chroot stage to build the derivative # ---------------------------------------------------------------------------- # Default: http://security.debian.org/debian/ MIRRORCHROOTSECURITY="" # Mirror for package updates used in the chroot stage to build the derivative # --------------------------------------------------------------------------- # Default: MIRRORCHROOT MIRRORCHROOTUPDATES="" # Mirror for backports used in the chroot stage to build the derivative # --------------------------------------------------------------------- # Default: http://backports.debian.org/debian-backports/ MIRRORCHROOTBACKPORTS="" # Derivative package mirror used by the live system # ------------------------------------------------- MIRRORBINARY="" # Derivatives security package mirror used by the live system # ----------------------------------------------------------- MIRRORBINARYSECURITY="" # Derivatives update package mirror used by the live system # --------------------------------------------------------- MIRRORBINARYUPDATES="" # Derivatives backports package mirror used by the live system # ------------------------------------------------------------ MIRRORBINARYBACKPORTS="" # Derivatives mirror used to fetch Debian installer images # -------------------------------------------------------- # Default: $MIRRORBOOTSTRAP MIRRORDEBIANINSTALLER="" # Short language setting. # ----------------------- # Short language definition, i.e. "en", "de", ... # Leave empty for automatic selection (language currently used). LANGSHORT="" # Full locale setting. # -------------------- # Full language definition including region and encoding, i.e. # "en_US.utf8", "de_DE.utf8" ... # Leave empty for automatic selection (language currently used). LANGFULL="" # List of locales to append to kernel parameters. # ----------------------------------------------- # Full language definition including region and encoding, i.e. # "en_US.utf8", "de_DE.utf8" ... # Leave empty for automatic selection (language currently used). # Set # LIVEAPPENDLOCALES="-" # to avoid appending locales. LIVEAPPENDLOCALES="" # Timezone to append to kernel parameters. # ---------------------------------------- # Specify a continent/city combination, i.e. "Europe/Berlin"... # Leave empty for automatic selection (currently used timezone). # Set # LIVEAPPENDTIMEZONE="-" # to avoid appending a timezone LIVEAPPENDTIMEZONE="" # List of keyboard layouts to append to kernel parameters. # -------------------------------------------------------- # Leave empty for automatic selection (short language name). # Set # LIVEAPPENDKBDLAYOUTS="-" # to avoid appending keyboard layouts LIVEAPPENDKBDLAYOUTS="" # VGA mode to append to kernel parameters. # ---------------------------------------- # Only used for CLI live systems, ignored if GUI=yes. # Set to empty string to append no VGA setting and let the system choose one. # Use LIVEAPPENDVGA="0x0F00" to stay at 25 lines x 80 columns. # LIVEAPPENDVGA="" LIVEAPPENDVGA="0x0F00" # IP settings to append to kernel parameters. # ------------------------------------------- # Arguments for ip=... kernel parameter. # Leave empty to omit the kernel parameter. # Normally DHCP is enabled by default (without the kernel parameter). # For nfsroot images DHCP is disabled by default, so you should enable # it here. # # Either device:address:netmask:gateway:nameserver: # LIVEAPPENDIP="eth0:192.0.2.42:255.255.255.0:192.0.2.1:192.0.2.50" # Or one from the methods below: # Use DHCP protocol # LIVEAPPENDIP="dhcp" # Use older BOOTP protocol # LIVEAPPENDIP="bootp" # Use older RARP protocol # LIVEAPPENDIP="rarp" # Use all three: DHCP, BOOTP, RARP # LIVEAPPENDIP="on" # LIVEAPPENDIP="any" # Not documented # LIVEAPPENDIP="both" # Inspect the live systems /etc/network/interfaces file # LIVEAPPENDIP="frommedia" # Disable networking (use neither DHCP, BOOTP or RARP) # LIVEAPPENDIP="none" # LIVEAPPENDIP="off" LIVEAPPENDIP="" # Keyboard mapping to use when booting a command line (non-GUI) live system. # -------------------------------------------------------------------------- # Keyboard mapping file in subdirectories of the /usr/share/keymaps directory. # The keymaps are in the console-data package. # Run commands like: # for i in `find /usr/share/keymaps -name '*.kmap.gz'` # do # echo '#####' $i # gzip -dc $i | grep '^#' # echo '' # done # to see comments from the available map files. # Leave empty for automatic selection (depending on language). # NOTE: Automatic selection means guessing. # Set # CONSKEYMAP="-" # to avoid loading a keyboard mapping. CONSKEYMAP="" # NTP server to query during boot process. # ---------------------------------------- # Host name or IP address of NTP server to query during boot. # Leave empty to omit the query. # If USENTPDAEMON="yes", the server is queried periodically by ntpd instead # of running ntpdate once at boot. NTPSERVER="" # Use NTP daemon. # --------------- # Boolean flag, "yes" or "no". USENTPDAEMON="no" # Beep when boot menu is shown. # ----------------------------- # Boolean flag, use "yes" to make the boot menu beep. # The beep might inform visually impaired or blind people about the presence # of the boot menu, so they can append kernel options for screen readers... # When restoring one PC in a computer class while a lecture is in progress, # any noise disturbs. BOOTMENUBEEP="yes" # Live system publisher name. # --------------------------- # Use your full name here. # PUBLISHER="John Smith" PUBLISHER="" # # # ##### END OF CONFIGURATION SECTION ##### # There should be no need to apply changes below this line! # ##### Automatically complete setup # # EXVAL="0" if [ "X$LANGSHORT" = "X" ] then LANGSHORT=`echo $LANG | cut -f 1 -d '.' | cut -f 1 -d _` fi if [ "X$LANGFULL" = "X" ] then LANGFULL=`grep "^LANG=" /etc/default/locale | cut -f 2 -d '"'` fi if [ "X$LANGFULL" = "X" ] then LANGFULL="$LANG" fi if [ "X$LIVEAPPENDLOCALES" = "X" -a "X$LANGFULL" != "X" ] then echo sed change UTF-8 encoding LIVEAPPENDLOCALES=`echo $LANGFULL | sed -e 's/UTF\-8/utf8/g'` fi if [ "X$LIVEAPPENDKBDLAYOUTS" = "X" -a "X$LANGSHORT" != "X" ] then LIVEAPPENDKBDLAYOUTS="$LANGSHORT" fi if [ "X$LIVEAPPENDTIMEZONE" = "X" -a -f /etc/timezone ] then LIVEAPPENDTIMEZONE=`cat /etc/timezone` fi LANGREG=`echo $LANGFULL | cut -f 1 -d .` if [ "X$PUBLISHER" = "X" ] then PUBLISHER=`getent passwd | grep "^${LOGNAME}:" | cut -f 5 -d :` fi if [ "X$PUBLISHER" = "X" ] then PUBLISHER="An Unknown Live System Creator" fi if [ "X$DATADIR" = "X" ] then DATADIR="/usr/local/livesys" fi [ "X$LIVETYPE" != "X" ] || LIVETYPE="hybrid" if [ "X$APTRECOMMENDS" != "Xyes" -a "X$APTRECOMMENDS" != "Xno" ] then APTRECOMMENDS="yes" fi # ----- Start of console keymapping subsection # # # Guess console keymap from language. # The _last_ line in each branch wins. # So change line order within branches to change priority. # This subsection may need correction, as I only know about keyboards # for german language. if [ "X$CONSKEYMAP" = "X" ] then case "X$LANGSHORT" in "Xar") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ar.kmap.gz" ;; "Xbe") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/by.kmap.gz" ;; "Xbg") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/bg-cp1251.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/bg.kmap.gz" ;; "Xbr") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/br-abnt2.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/br-latin1.kmap.gz" ;; "Xcs") CONSKEYMAP="/usr/share/keymaps/sun/sunt5-cz-us.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-us-cz.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/cz-us-qwertz.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/cz-us-qwerty.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/cz-lat2-prog.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/cz-lat2.kmap.gz" ;; "Xda") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mac-usb-dk-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/dk-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/dk.kmap.gz" ;; "Xde") CONSKEYMAP="/usr/share/keymaps/atari/atari-de-deadkeys.kmap.gz" CONSKEYMAP="/usr/share/keymaps/atari/atari-de.kmap.gz" CONSKEYMAP="/usr/share/keymaps/amiga/amiga-de.kmap.gz" [ "X$LANGREG" != "Xde_CH" ] || CONSKEYMAP="/usr/share/keymaps/amiga/amiga-sg.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-de-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/dvorak/dvorak-de.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/mac-usb-de-latin1-nodeadkeys.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/mac-usb-de-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-ibook-de.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-ibook-de-deadkeys.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-macbook-de.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-de2-ext.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-de-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-de-latin1-nodeadkeys.kmap.gz" [ "X$LANGREG" != "Xde_CH" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwertz/mac-usb-de_CH.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/de.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap.gz" ;; "Xen") [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/atari/atari-us-deadkeys.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/atari/atari-us.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/atari/atari-uk-deadkeys.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/atari/atari-uk.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/amiga/amiga-us.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/sun/sunt5-uk.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/sun/sunt6-uk.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/i386/dvorak/dvorak-uk.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/mac/mac-uk.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/mac/mac-us-ext.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/mac/mac-us-std.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/mac/mac-us.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mac-usb-uk.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mac-usb-us.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/us-intl.iso01.kmap.gz" [ "X$LANGREG" != "Xen_US" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/us-intl.iso15.kmap.gz" [ "X$LANGREG" != "Xen_CA" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/us-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/us.kmap.gz" [ "X$LANGREG" != "Xen_UK" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/uk.kmap.gz" [ "X$LANGREG" != "Xen_CA" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ca-multi.kmap.gz" ;; "Xel") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/gr-pc.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/gr-utf8.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/gr.kmap.gz" ;; "Xes") CONSKEYMAP="/usr/share/keymaps/amiga/amiga-es.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt4-es.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-es.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-es.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mac-usb-es.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/es.kmap.gz" ;; "Xet") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/et.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/et-nodeadkeys.kmap.gz" ;; "Xfa") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ar.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/fa.kmap.gz" ;; "Xfi") CONSKEYMAP="/usr/share/keymaps/sun/sunt4-fi-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-fi-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-fi-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mac-usb-fi-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/fi-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-fi-lat6.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-fi-ir209.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/fi.kmap.gz" ;; "Xfr") CONSKEYMAP="/usr/share/keymaps/atari/atari-fr.kmap.gz" CONSKEYMAP="/usr/share/keymaps/amiga/amiga-fr.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-fr-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/dvorak/dvorak-fr-bepo-utf8.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/dvorak/dvorak-fr-bepo.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/dvorak/dvorak-fr.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-macbook-fr.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/mac-usb-fr.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-fr-ext.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-fr.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-fr2-ext.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-fr3.kmap.gz" [ "X$LANGREG" != "Xfr_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/mac-usb-be.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/fr-pc.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/fr-latin0.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/fr-latin9.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/fr-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/fr-x11.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/fr.kmap.gz" [ "X$LANGREG" != "Xfr_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/wangbe.kmap.gz" [ "X$LANGREG" != "Xfr_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/be-latin1.kmap.gz" [ "X$LANGREG" != "Xfr_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/be2-latin1.kmap.gz" [ "X$LANGREG" != "Xfr_CH" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwertz/mac-usb-fr_CH-latin1.kmap.gz" [ "X$LANGREG" != "Xfr_CH" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwertz/fr_CH-latin1.kmap.gz" [ "X$LANGREG" != "Xfr_CH" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwertz/fr_CH.kmap.gz" [ "X$LANGREG" != "Xfr_CA" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/cf.kmap.gz" [ "X$LANGREG" != "Xfr_CA" ] || CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ca-multi.kmap.gz" ;; "Xhe") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/hebrew.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/il-heb.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/il.kmap.gz" ;; "Xhr") CONSKEYMAP="/usr/share/keymaps/i386/qwertz/croat.kmap.gz" ;; "Xhu") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/hu101.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/hu.kmap.gz" ;; "Xis") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/is-latin1-us.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/is-latin1.kmap.gz" ;; "Xit") CONSKEYMAP="/usr/share/keymaps/amiga/amiga-it.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/ibook-it.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-it.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/azerty/mac-usb-it.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/it-ibm.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/it.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/it2.kmap.gz" ;; "Xja") CONSKEYMAP="/usr/share/keymaps/sun/sunt4-ja.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-ja.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/pc110.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/jp106.kmap.gz" ;; "Xkk") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/kk.kmap.gz" ;; "Xky") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/kg.kmap.gz" ;; "Xla") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/la-latin1.kmap.gz" ;; "Xlt") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/lt.l4.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/lt.kmap.gz" ;; "Xlv") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/lv-latin4.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/lv-latin7.kmap.gz" ;; "Xmk") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mk.kmap.gz" ;; "Xnl") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/nl.kmap.gz" [ "X$LANGREG" != "Xnl_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/mac-usb-be.kmap.gz" [ "X$LANGREG" != "Xnl_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/wangbe.kmap.gz" [ "X$LANGREG" != "Xnl_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/be-latin1.kmap.gz" [ "X$LANGREG" != "Xnl_BE" ] || CONSKEYMAP="/usr/share/keymaps/i386/azerty/be2-latin1.kmap.gz" ;; "Xno") CONSKEYMAP="/usr/share/keymaps/sun/sunt4-no-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sunt5-no.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/no.kmap.gz" ;; "Xpl") CONSKEYMAP="/usr/share/keymaps/sun/sun-pl.kmap.gz" CONSKEYMAP="/usr/share/keymaps/sun/sun-pl-altgraph.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-pl_m-ext1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/pl-qwertz.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/pl.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/pl1.kmap.gz" ;; "Xpt") CONSKEYMAP="/usr/share/keymaps/mac/mac-pt-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/mac-usb-pt-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/pt-old.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/pt-latin1.kmap.gz" ;; "Xro") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ro-comma.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ro-academic.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ro.kmap.gz" ;; "Xru") CONSKEYMAP="/usr/share/keymaps/sun/sunt5-ru.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/dvorak/dvorak-ru.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru_win.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru-yawerty.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru-ms.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru-cp1251.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru2.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru3.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ru4.kmap.gz" ;; "Xse") CONSKEYMAP="/usr/share/keymaps/atari/atari-se.kmap.gz" CONSKEYMAP="/usr/share/keymaps/atari/atari-se-deadkeys.kmap.gz" CONSKEYMAP="/usr/share/keymaps/amiga/amiga-se.kmap.gz" CONSKEYMAP="/usr/share/keymaps/mac/mac-se.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/mac-usb-se.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-ir209.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-fi-lat6.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-fi-ir209.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/se-lat6.kmap.gz" ;; "Xsg") CONSKEYMAP="/usr/share/keymaps/i386/qwertz/sg-latin1.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/sg.kmap.gz" ;; "Xsk") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/sk-prog.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/sk-prog-qwerty.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/sk-prog-qwertz.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/sk-qwerty.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/sk-qwertz.kmap.gz" ;; "Xsl") CONSKEYMAP="/usr/share/keymaps/i386/qwertz/slovene.kmap.gz" ;; "Xsr") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/sr-cy.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwertz/sr.kmap.gz" ;; "Xth") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/th-tis.kmap.gz" ;; "Xtr") CONSKEYMAP="/usr/share/keymaps/sun/sunt5-trqalt.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/tr_q-latin5.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/tralt.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/trq.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/fgGIod/trfu.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/fgGIod/tr_f-latin5.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/fgGIod/trf.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/trqu.kmap.gz" ;; "Xuk") CONSKEYMAP="/usr/share/keymaps/i386/qwerty/ua.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/uaw_uni.kmap.gz" CONSKEYMAP="/usr/share/keymaps/i386/qwerty/uaw.kmap.gz" ;; "Xwo") CONSKEYMAP="/usr/share/keymaps/i386/azerty/wo.kmap.gz" ;; esac fi # # # ----- Start of console keymapping subsection # Check whether setup is completed. # --------------------------------- if [ "X$CONFIGURED" = "Xno" ] then echo 'ERROR: Script not configured yet!' echo 'Please edit the scripts configuration section.' echo 'The section is located at start of file, below the copyright notice.' exit 1 fi # Check for root privileges # ------------------------- if [ "X$LOGNAME" != "Xroot" ] then echo 'ERROR: Root privileges required!' echo 'Please run this script as user root only.' exit 1 fi # Save current working directory. DIR=`pwd` if [ "X$DIR" = "X" ] then echo 'ERROR: Failed to find current directory name!' exit 1 fi echo Start date # Inherited umask may be wrong. umask 022 # Build live system on up-to-date host. if [ "X$ALLOWUPGRADE" = "Xyes" ] then apt-get -y update && apt-get -y upgrade fi # Make sure to have all required packages for build and live build. apt-get install `sed -e 's/[ \t]*#.*$//g' livesys-data/pkg_local.txt` # Create live system directory. [ ! -d livesys ] || rm -fr livesys mkdir -p livesys chmod 755 livesys # Configure and build the software, do not install yet. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-shared --disable-static --enable-packaging --with-suite=rescue --with-man=yes make OPTCONF="" if [ "X$LIVETYPE" = "Xnfs" -a "X$NFSSERVER" != "X" -a "X$NFSPATH" != "X" ] then OPTCONF="$OPTCONF -b netboot" OPTCONF="$OPTCONF --net-root-server $NFSSERVER" OPTCONF="$OPTCONF --net-root-path $NFSPATH" elif [ "X$LIVETYPE" = "Xhdd" ] then OPTCONF="$OPTCONF -b hdd" elif [ "X$LIVETYPE" = "Xnfs" ] then echo 'ERROR: Missing NFSSERVER and/or NFSPATH configuration!' exit 1 fi # No apt index files in live system to save disk space OPTCONF="$OPTCONF --apt-indices false" # Avoid installation of recommended packages to save disk space if [ "X$GUI" != "Xyes" -a "X$APTRECOMMENDS" != "Xyes" ] then OPTCONF="$OPTCONF --apt-recommends false" fi # Minimum base bootstrap OPTCONF="$OPTCONF --debootstrap-options --variant=minbase" # Include firmware into live system # It depends on the ALLOWNONFREE setting whether or not non-free firmware # is added to the live system: # no: Only free firmware files are used. # yes: Free and non-free firmware files are used. OPTCONF="$OPTCONF --firmware-chroot true" # No firmware in the binary stage, the live system does not contain installers. OPTCONF="$OPTCONF --firmware-binary false" # No memory test program in live system OPTCONF="$OPTCONF --memtest none" # Do not required valid signatures if [ "X$ALLOWUNSIGNEDPKG" = "Xyes" ] then OPTCONF="$OPTCONF --apt-secure false" fi if [ "X$PARENTMIRRORBOOTSTRAP" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-bootstrap $PARENTMIRRORBOOTSTRAP" fi if [ "X$PARENTMIRRORCHROOT" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-chroot $PARENTMIRRORCHROOT" fi if [ "X$PARENTMIRRORCHROOTSECURITY" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-chroot-security $PARENTMIRRORCHROOTSECURITY" fi if [ "X$PARENTMIRRORCHROOTUPDATES" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-chroot-updates $PARENTMIRRORCHROOTUPDATES" fi if [ "X$PARENTMIRRORCHROOTBACKPORTS" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-chroot-backports $PARENTMIRRORCHROOTBACKPORTS" fi if [ "X$PARENTMIRRORBINARY" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-binary $PARENTMIRRORBINARY" fi if [ "X$PARENTMIRRORBINARYSECURITY" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-binary-security $PARENTMIRRORBINARYSECURITY" fi if [ "X$PARENTMIRRORBINARYUPDATES" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-binary-updates $PARENTMIRRORBINARYUPDATES" fi if [ "X$PARENTMIRRORBINARYBACKPORTS" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-binary-backports $PARENTMIRRORBINARYBACKPORTS" fi if [ "X$PARENTMIRRORDEBIANINSTALLER" != "X" ] then OPTCONF="$OPTCONF --parent-mirror-debian-installer $PARENTMIRRORDEBIANINSTALLER" fi if [ "X$MIRRORBOOTSTRAP" != "X" ] then OPTCONF="$OPTCONF --mirror-bootstrap $MIRRORBOOTSTRAP" fi if [ "X$MIRRORCHROOT" != "X" ] then OPTCONF="$OPTCONF --mirror-chroot $MIRRORCHROOT" fi if [ "X$MIRRORCHROOTSECURITY" != "X" ] then OPTCONF="$OPTCONF --mirror-chroot-security $MIRRORCHROOTSECURITY" fi if [ "X$MIRRORCHROOTUPDATES" != "X" ] then OPTCONF="$OPTCONF --mirror-chroot-updates $MIRRORCHROOTUPDATES" fi if [ "X$MIRRORCHROOTBACKPORTS" != "X" ] then OPTCONF="$OPTCONF --mirror-chroot-backports $MIRRORCHROOTBACKPORTS" fi if [ "X$MIRRORBINARY" != "X" ] then OPTCONF="$OPTCONF --mirror-binary $MIRRORBINARY" fi if [ "X$MIRRORBINARYSECURITY" != "X" ] then OPTCONF="$OPTCONF --mirror-binary-security $MIRRORBINARYSECURITY" fi if [ "X$MIRRORBINARYUPDATES" != "X" ] then OPTCONF="$OPTCONF --mirror-binary-updates $MIRRORBINARYUPDATES" fi if [ "X$MIRRORBINARYBACKPORTS" != "X" ] then OPTCONF="$OPTCONF --mirror-binary-backports $MIRRORBINARYBACKPORTS" fi if [ "X$MIRRORDEBIANINSTALLER" != "X" ] then OPTCONF="$OPTCONF --mirror-debian-installer $MIRRORDEBIANINSTALLER" fi # Live system requires configuration OPTLIVEAPPEND="boot=live components live-config.utc=no" # Add configuration hints if [ "X$LIVEAPPENDLOCALES" != "X" -a "X$LIVEAPPENDLOCALES" != "X-" ] then OPTLIVEAPPEND="$OPTLIVEAPPEND live-config.locales=$LIVEAPPENDLOCALES locales=$LIVEAPPENDLOCALES" fi if [ "X$LIVEAPPENDKBDLAYOUTS" != "X" -a "X$LIVEAPPENDKBDLAYOUTS" != "X-" ] then OPTLIVEAPPEND="$OPTLIVEAPPEND live-config.keyboard-layouts=$LIVEAPPENDKBDLAYOUTS" fi if [ "X$LIVEAPPENDTIMEZONE" != "X" -a "X$LIVEAPPENDTIMEZONE" != "X-" ] then OPTLIVEAPPEND="$OPTLIVEAPPEND live-config.timezone=$LIVEAPPENDTIMEZONE" fi if [ "X$LIVEAPPENDVGA" != "X" -a "X$GUI" != "Xyes" ] then OPTLIVEAPPEND="$OPTLIVEAPPEND nomodeset vga=$LIVEAPPENDVGA" fi if [ "X$LIVEAPPENDIP" != "X" ] then OPTLIVEAPPEND="$OPTLIVEAPPEND ip=$LIVEAPPENDIP" fi if [ "X$LIVETYPE" = "Xnfs" ] then OPTLIVEAPPEND="$OPTLIVEAPPEND netboot=nfs nfsroot=${NFSSERVER}:${NFSPATH}" fi [ "X$PUBLISHER" != "X" ] || PUBLISHER="An Unknown Live System Builder" PKGLOC="" cd livesys lb init if [ "X$ALLOWNONFREE" = "Xyes" -a "X$ALLOWUNSIGNEDPKG" = "Xyes" ] then lb config \ $OPTCONF \ --archive-areas "main contrib non-free" \ --apt-options "--yes --allow-unauthenticated" \ --iso-publisher "$PUBLISHER" \ --iso-volume DKTOOLIAN \ --bootappend-live "$OPTLIVEAPPEND" elif [ "X$ALLOWNONFREE" = "Xyes" ] then lb config \ $OPTCONF \ --archive-areas "main contrib non-free" \ --apt-options "--yes" \ --iso-publisher "$PUBLISHER" \ --iso-volume DKTOOLIAN \ --bootappend-live "$OPTLIVEAPPEND" elif [ "X$ALLOWUNSIGNEDPKG" = "Xyes" ] then lb config \ $OPTCONF \ --apt-options "--yes --allow-unauthenticated" \ --iso-publisher "$PUBLISHER" \ --iso-volume DKTOOLIAN \ --bootappend-live "$OPTLIVEAPPEND" else lb config \ $OPTCONF \ --apt-options "--yes" \ --iso-publisher "$PUBLISHER" \ --iso-volume DKTOOLIAN \ --bootappend-live "$OPTLIVEAPPEND" fi echo sed remove comments if [ ! -d config/archives ] then mkdir -p config/archives chmod 755 config/archives fi if [ ! -d config/includes.chroot ] then mkdir -p config/includes.chroot chmod 755 config/includes.chroot fi if [ ! -d config/includes.chroot/usr/share/doc/dktools ] then mkdir -p config/includes.chroot/usr/share/doc/dktools chmod 755 config/includes.chroot/usr/share/doc/dktools fi if [ ! -d config/includes.chroot/etc/apt ] then mkdir -p config/includes.chroot/etc/apt chmod 755 config/includes.chroot/etc/apt fi for i in README LICENSE bsdlic.txt version.txt do cp ../$i config/includes.chroot/usr/share/doc/dktools/$i chmod 644 config/includes.chroot/usr/share/doc/dktools/$i done cp ../debian/copyright config/includes.chroot/usr/share/doc/copyright chmod 644 config/includes.chroot/usr/share/doc/copyright # cp ../livesys-data/apt-pinning.txt config/archives/apt-pinning.pref.chroot cp ../livesys-data/apt-pinning.txt config/includes.chroot/etc/apt/preferences if [ "X$ALLOWNONFREE" = "Xyes" ] then sed -e 's/[ \t]*#.*$//g' < ../livesys-data/pkg_firmware.txt >> config/package-lists/dktoolian.list.chroot fi echo sed remove comments sed -e 's/[ \t]*#.*$//g' < ../livesys-data/pkg_base.txt >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo sed remove comments sed -e 's/[ \t]*#.*$//g' < ../livesys-data/pkg_xfce.txt >> config/package-lists/dktoolian.list.chroot fi if [ "X$NTPSERVER" != "X" -a "X$USENTPDAEMON" = "Xyes" ] then echo ntp >> config/package-lists/dktoolian.list.chroot else echo ntpdate >> config/package-lists/dktoolian.list.chroot fi case "X$LANGSHORT" in "Xaf") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-af" >> config/package-lists/dktoolian.list.chroot fi ;; "Xam") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-amharic" if [ "X$GUI" = "Xyes" ] then PKGLOC="$PKGLOC task-amharic-desktop" fi ;; "Xan") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-an" >> config/package-lists/dktoolian.list.chroot fi ;; "Xar") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-arabic" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-arabic task-arabic-desktop" echo "iceweasel-l10n-ar" >> config/package-lists/dktoolian.list.chroot fi ;; "Xast") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-asturian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-asturian task-asturian-desktop" echo "iceweasel-l10n-ast" >> config/package-lists/dktoolian.list.chroot fi ;; "Xaz") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-az" >> config/package-lists/dktoolian.list.chroot fi ;; "Xbe") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-belarusian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-belarusian task-belarusian-desktop" echo "iceweasel-l10n-be" >> config/package-lists/dktoolian.list.chroot fi ;; "Xbg") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-bulgarian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-bulgarian task-bulgarian-desktop" echo "iceweasel-l10n-bg" >> config/package-lists/dktoolian.list.chroot fi ;; "Xbn") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-bengali" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-bengali task-bengali-desktop" if [ "X$LANGREG" = "Xbn_BD" ] then echo "iceweasel-l10n-bn-bd" >> config/package-lists/dktoolian.list.chroot else echo "iceweasel-l10n-bn-in" >> config/package-lists/dktoolian.list.chroot fi fi ;; "Xbr") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-br" >> config/package-lists/dktoolian.list.chroot fi ;; "Xbs") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-bosnian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-bosnian task-bosnian-desktop" echo "iceweasel-l10n-bs" >> config/package-lists/dktoolian.list.chroot fi ;; "Xca") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-catalan" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-catalan task-catalan-desktop" echo "iceweasel-l10n-ca" >> config/package-lists/dktoolian.list.chroot fi ;; "Xcs") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-czech" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-czech task-czech-desktop" echo "iceweasel-l10n-cs" >> config/package-lists/dktoolian.list.chroot fi ;; "Xcy") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-welsh" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-welsh task-welsh-desktop" echo "iceweasel-l10n-cy" >> config/package-lists/dktoolian.list.chroot fi ;; "Xda") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-danish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-danish task-danish-desktop" echo "iceweasel-l10n-da" >> config/package-lists/dktoolian.list.chroot fi ;; "Xde") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-german" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-german task-german-desktop" echo "iceweasel-l10n-de" >> config/package-lists/dktoolian.list.chroot fi if [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xde_DE" ] then echo "iceweasel-l10n-dsb" >> config/package-lists/dktoolian.list.chroot echo "iceweasel-l10n-hsb" >> config/package-lists/dktoolian.list.chroot fi if [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xde_CH" ] then echo "iceweasel-l10n-rm" >> config/package-lists/dktoolian.list.chroot fi ;; "Xdz") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-dzongkha" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-dzongkha task-dzongkha-desktop" fi ;; "Xel") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-greek" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-greek task-greek-desktop" echo "iceweasel-l10n-el" >> config/package-lists/dktoolian.list.chroot fi ;; "Xen") echo "locales" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-english" if [ "X$GUI" = "Xyes" -a "X$LANGREN" = "Xen_GB" ] then PKGLOC="task-english task-british-desktop" echo "iceweasel-l10n-en-gb" >> config/package-lists/dktoolian.list.chroot echo "iceweasel-l10n-gd" >> config/package-lists/dktoolian.list.chroot elif [ "X$GUI" = "Xyes" -a "X$LANGREN" = "Xen_ZA" ] then PKGLOC="task-english task-south-african-english-desktop" echo "iceweasel-l10n-en-za" >> config/package-lists/dktoolian.list.chroot echo "iceweasel-l10n-af" >> config/package-lists/dktoolian.list.chroot fi ;; "Xeo") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-esperanto" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-esperanto task-esperanto-desktop" echo "iceweasel-l10n-eo" >> config/package-lists/dktoolian.list.chroot fi ;; "Xes") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-spanish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-spanish task-spanish-desktop" fi if [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xes_AR" ] then echo "iceweasel-l10n-es-ar" >> config/package-lists/dktoolian.list.chroot elif [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xes_CL" ] then echo "iceweasel-l10n-es-cl" >> config/package-lists/dktoolian.list.chroot elif [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xes_MX" ] then echo "iceweasel-l10n-es-mx" >> config/package-lists/dktoolian.list.chroot else echo "iceweasel-l10n-es-es" >> config/package-lists/dktoolian.list.chroot fi ;; "Xet") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-estonian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-estonian task-estonian-desktop" echo "iceweasel-l10n-et" >> config/package-lists/dktoolian.list.chroot fi ;; "Xeu") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-basque" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-basque task-basque-desktop" echo "iceweasel-l10n-eu" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfa") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-persian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-persian task-persian-desktop" echo "iceweasel-l10n-fa" >> config/package-lists/dktoolian.list.chroot fi ;; "Xff") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfi") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-finnish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-finnish task-finnish-desktop" echo "iceweasel-l10n-fi" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfr") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-french" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-french task-french-desktop" echo "iceweasel-l10n-fr" >> config/package-lists/dktoolian.list.chroot fi if [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xfr_CH" ] then echo "iceweasel-l10n-rm" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfub") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfue") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfuh") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfui") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfuq") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfuv") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ff" >> config/package-lists/dktoolian.list.chroot fi ;; "Xfy") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-fy-nl" >> config/package-lists/dktoolian.list.chroot fi ;; "Xga") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-irish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-irish task-irish-desktop" echo "iceweasel-l10n-ga-ie" >> config/package-lists/dktoolian.list.chroot fi ;; "Xgl") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-galician" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-galician task-galician-desktop" echo "iceweasel-l10n-gl" >> config/package-lists/dktoolian.list.chroot fi ;; "Xgu") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-gujarati" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-gujarati task-gujarati-desktop" echo "iceweasel-l10n-gu-in" >> config/package-lists/dktoolian.list.chroot fi ;; "Xhe") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-hebrew" if [ "X$GUI" = "Xyes" ] then echo "task-hebrew-desktop" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-hebrew task-hebrew-desktop" echo "iceweasel-l10n-he" >> config/package-lists/dktoolian.list.chroot fi ;; "Xhi") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-hindi" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-hindi task-hindi-desktop" echo "iceweasel-l10n-hi-in" >> config/package-lists/dktoolian.list.chroot fi ;; "Xhr") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-croatian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-croatian task-croatian-desktop" echo "iceweasel-l10n-hr" >> config/package-lists/dktoolian.list.chroot fi ;; "Xhu") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-hungarian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-hungarian task-hungarian-desktop" echo "iceweasel-l10n-hu" >> config/package-lists/dktoolian.list.chroot fi ;; "Xhy") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-hy-am" >> config/package-lists/dktoolian.list.chroot fi ;; "Xid") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-indonesian-desktop" echo "iceweasel-l10n-id" >> config/package-lists/dktoolian.list.chroot fi ;; "Xis") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-icelandic" if [ "X$GUI" = "Xyes" ] then echo "task-icelandic-desktop" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-icelandic task-icelandic-desktop" echo "iceweasel-l10n-is" >> config/package-lists/dktoolian.list.chroot fi ;; "Xit") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-italian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-italian task-italian-desktop" echo "iceweasel-l10n-it" >> config/package-lists/dktoolian.list.chroot fi ;; "Xja") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-japanese" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-japanese task-japanese-desktop" echo "iceweasel-l10n-ja" >> config/package-lists/dktoolian.list.chroot fi ;; "Xka") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-cyrillic" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-cyrillic task-cyrillic-desktop task-georgian-desktop" echo "iceweasel-l10n-ar" >> config/package-lists/dktoolian.list.chroot fi ;; "Xkk") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-kazakh" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-kazakh task-kazakh-desktop" echo "iceweasel-l10n-kk" >> config/package-lists/dktoolian.list.chroot fi ;; "Xkm") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-khmer" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-khmer task-khmer-desktop" echo "iceweasel-l10n-km" >> config/package-lists/dktoolian.list.chroot fi ;; "Xkn") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-kannada-desktop" echo "iceweasel-l10n-kn" >> config/package-lists/dktoolian.list.chroot fi ;; "Xko") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-korean" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-korean task-korean-desktop" echo "iceweasel-l10n-ko" >> config/package-lists/dktoolian.list.chroot fi ;; "Xku") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-kurdish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-kurdish task-kurdish-desktop" fi ;; "Xlij") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-lij" >> config/package-lists/dktoolian.list.chroot fi ;; "Xlt") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-lithuanian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-lithuanian task-lithuanian-desktop" echo "iceweasel-l10n-lt" >> config/package-lists/dktoolian.list.chroot fi ;; "Xlv") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-latvian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-latvian task-latvian-desktop" echo "iceweasel-l10n-lv" >> config/package-lists/dktoolian.list.chroot fi ;; "Xmai") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-mai" >> config/package-lists/dktoolian.list.chroot fi ;; "Xmk") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-macedonian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-macedonian task-macedonian-desktop" echo "iceweasel-l10n-mk" >> config/package-lists/dktoolian.list.chroot fi ;; "Xml") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-malayalam" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-malayalam task-malayalam-desktop" echo "iceweasel-l10n-ml" >> config/package-lists/dktoolian.list.chroot echo "iceweasel-l10n-ms" >> config/package-lists/dktoolian.list.chroot fi ;; "Xmr") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-marathi" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-marathi task-marathi-desktop" echo "iceweasel-l10n-mr" >> config/package-lists/dktoolian.list.chroot fi ;; "Xms") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-ms" >> config/package-lists/dktoolian.list.chroot fi ;; "Xne") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-nepali-desktop" fi ;; "Xnl") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-dutch" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-dutch task-dutch-desktop" echo "iceweasel-l10n-nl" >> config/package-lists/dktoolian.list.chroot echo "iceweasel-l10n-fy-nl" >> config/package-lists/dktoolian.list.chroot fi ;; "Xnb") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-norwegian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-norwegian task-norwegian-desktop" echo "iceweasel-l10n-nb-no" >> config/package-lists/dktoolian.list.chroot fi ;; "Xnn") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-norwegian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-norwegian task-norwegian-desktop" echo "iceweasel-l10n-nn-no" >> config/package-lists/dktoolian.list.chroot fi ;; "Xno") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-norwegian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-norwegian task-norwegian-desktop" echo "iceweasel-l10n-nb-no" >> config/package-lists/dktoolian.list.chroot echo "iceweasel-l10n-nn-no" >> config/package-lists/dktoolian.list.chroot fi ;; "Xor") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-or" >> config/package-lists/dktoolian.list.chroot fi ;; "Xpa") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-punjabi" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-punjabi task-punjabi-desktop" echo "iceweasel-l10n-pa-in" >> config/package-lists/dktoolian.list.chroot fi ;; "Xpl") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-polish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-polish task-polish-desktop" echo "iceweasel-l10n-pl" >> config/package-lists/dktoolian.list.chroot fi ;; "Xpt") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$LANGREG" = "Xpt_BR" ] then PKGLOC="task-brazilian-portuguese" else PKGLOC="task-portuguese" fi if [ "X$LANGREG" = "Xpt_BR" -a "X$GUI" = "Xyes" ] then PKGLOC="task-brazilian-portuguese task-brazilian-portuguese-desktop" echo "iceweasel-l10n-pt-br" >> config/package-lists/dktoolian.list.chroot elif [ "X$GUI" = "Xyes" ] then PKGLOC="task-portuguese task-portuguese-desktop" echo "iceweasel-l10n-pt-pt" >> config/package-lists/dktoolian.list.chroot fi ;; "Xrm") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-rm" >> config/package-lists/dktoolian.list.chroot fi ;; "Xro") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-romanian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-romanian task-romanian-desktop" echo "iceweasel-l10n-ro" >> config/package-lists/dktoolian.list.chroot fi ;; "Xru") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-cyrillic task-russian" if [ "X$GUI" = "Xyes" ] then PKGLOC="$PKGLOC task-cyrillic-desktop task-russian-desktop" echo "iceweasel-l10n-ru" >> config/package-lists/dktoolian.list.chroot fi ;; "Xse") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-northern-sami" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-northern-sami task-northern-sami-desktop" fi ;; "Xses") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-son" >> config/package-lists/dktoolian.list.chroot fi ;; "Xsi") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-sinhala-desktop" echo "iceweasel-l10n-si" >> config/package-lists/dktoolian.list.chroot fi ;; "Xsk") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-slovak" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-slovak task-slovak-desktop" echo "iceweasel-l10n-sk" >> config/package-lists/dktoolian.list.chroot fi ;; "Xsl") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-slovenian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-slovenian task-slovenian-desktop" echo "iceweasel-l10n-sl" >> config/package-lists/dktoolian.list.chroot fi ;; "Xson") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-son" >> config/package-lists/dktoolian.list.chroot fi ;; "Xsq") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-albanian-desktop" echo "iceweasel-l10n-sq" >> config/package-lists/dktoolian.list.chroot fi ;; "Xsr") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-serbian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-serbian task-serbian-desktop" echo "iceweasel-l10n-sr" >> config/package-lists/dktoolian.list.chroot fi ;; "Xsv") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-swedish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-swedish task-swedish-desktop" echo "iceweasel-l10n-sv-se" >> config/package-lists/dktoolian.list.chroot fi ;; "Xta") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-tamil" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-tamil task-tamil-desktop" echo "iceweasel-l10n-ta" >> config/package-lists/dktoolian.list.chroot fi ;; "Xte") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-telugu" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-telugu task-telugu-desktop" echo "iceweasel-l10n-te" >> config/package-lists/dktoolian.list.chroot fi ;; "Xth") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-thai" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-thai task-thai-desktop" echo "iceweasel-l10n-th" >> config/package-lists/dktoolian.list.chroot fi ;; "Xtr") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-turkish" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-turkish task-turkish-desktop" echo "iceweasel-l10n-tr" >> config/package-lists/dktoolian.list.chroot fi ;; "Xug") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-uyghur" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-uyghur task-uyghur-desktop" fi ;; "Xuk") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-ukrainian" if [ "X$GUI" = "Xyes" ] then PKGLOC="task-ukrainian task-ukrainian-desktop" echo "iceweasel-l10n-uk" >> config/package-lists/dktoolian.list.chroot fi ;; "Xuz") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo "iceweasel-l10n-uz" >> config/package-lists/dktoolian.list.chroot fi ;; "Xvi") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-vietnamese-desktop" echo "iceweasel-l10n-vi" >> config/package-lists/dktoolian.list.chroot fi ;; "Xxh") echo "locales-all" >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then PKGLOC="task-xhosa-desktop" echo "iceweasel-l10n-xh" >> config/package-lists/dktoolian.list.chroot fi ;; "Xza") echo "locales-all" >> config/package-lists/dktoolian.list.chroot PKGLOC="task-chinese-s task-chinese-t" if [ "X$GUI" = "Xyes" ] then PKGLOC="$PKGLOC task-chinese-s-desktop task-chinese-t-desktop" fi if [ "X$GUI" = "Xyes" -a "X$LANGREG" = "Xzh_TW" ] then echo "iceweasel-l10n-zh-tw" >> config/package-lists/dktoolian.list.chroot else echo "iceweasel-l10n-zh-cn" >> config/package-lists/dktoolian.list.chroot fi ;; "*") echo "locales-all" >> config/package-lists/dktoolian.list.chroot echo sed remove comments sed -e 's/[ \t]*#.*$//g' < ../livesys-data/pkg_lang_base.txt >> config/package-lists/dktoolian.list.chroot if [ "X$GUI" = "Xyes" ] then echo sed remove comments sed -e 's/[ \t]*#.*$//g' < ../livesys-data/pkg_lang_desktop.txt >> config/package-lists/dktoolian.list.chroot fi ;; esac chmod 644 config/package-lists/dktoolian.list.chroot if [ "X$CONSKEYMAP" != "X" -a "X$CONSKEYMAP" != "X-" -a "X$GUI" != "Xyes" ] then echo sed correct console keymap name cat - > config/hooks/0500-console-keyboard.hook.chroot < "${DIR}/livesys/config/includes.chroot/etc/default/locale" echo "LANG=$LANGFULL" >> "${DIR}/livesys/config/includes.chroot/etc/default/locale" chmod 755 "${DIR}/livesys/config/includes.chroot/etc/default/locale" fi if [ "X$LIVEAPPENDTIMEZONE" != "X" ] then echo $LIVEAPPENDTIMEZONE > "${DIR}/livesys/config/includes.chroot/etc/timezone" fi # Copy additional data. # Step 1: Files shipped with DK tools [ -d ${DIR}/livesys/config/includes.chroot ] || mkdir -p ${DIR}/livesys/config/includes.chroot (cd "${DIR}/livesys-data/root" ; tar cf - .) | (cd ${DIR}/livesys/config/includes.chroot ; tar xf -) if [ "X$GUI" = "Xyes" -a -d "${DIR}/livesys-data/root-gui" ] then (cd "${DIR}/livesys-data/root-gui" ; tar cf - .) | (cd ${DIR}/livesys/config/includes.chroot ; tar xf -) fi if [ "X$GUI" != "Xyes" -a -d "${DIR}/livesys-data/root-cli" ] then (cd "${DIR}/livesys-data/root-cli" ; tar cf - .) | (cd ${DIR}/livesys/config/includes.chroot ; tar xf -) fi # Step 2: Files created by user if [ "X${DATADIR}" != "X-" -a -d "${DATADIR}" ] then (cd "${DATADIR}" ; tar cf - .) | (cd ${DIR}/livesys/config/includes.chroot ; tar xf -) fi if [ "X${DATADIR}" != "X-" -a -d "${DATADIR}-cli" -a "X$GUI" != "Xyes" ] then (cd "${DATADIR}-cli" ; tar cf - .) | (cd ${DIR}/livesys/config/includes.chroot ; tar xf -) fi if [ "X${DATADIR}" != "X-" -a -d "${DATADIR}-gui" -a "X$GUI" = "Xyes" ] then (cd "${DATADIR}-gui" ; tar cf - .) | (cd ${DIR}/livesys/config/includes.chroot ; tar xf -) fi # Step 3: Ownership and permissions chown -R root:root "${DIR}/livesys/config/includes.chroot" find "${DIR}/livesys/config/includes.chroot" -type d -exec chmod ugo+rx {} \; find "${DIR}/livesys/config/includes.chroot" -type f -exec chmod ugo+r {} \; # Hooks # chroot stage: Copy files from /usr/share/dktoolian/etc to /etc cp "${DIR}/livesys-data/hook_etcfiles.txt" "${DIR}/livesys/config/hooks/0501-etcfiles.hook.chroot" chmod 755 "${DIR}/livesys/config/hooks/0501-etcfiles.hook.chroot" # chroot stage: Modify /etc/rc.local to copy files to /etc again cat - > "${DIR}/livesys/config/hooks/0502-etc-files-again.hook.chroot" <> ${DIR}/livesys/config/package-lists/localize.list.chroot done # echo "#! /bin/sh" > "${DIR}/livesys/config/hooks/0504-localize.hook.chroot" # echo "echo HOOK 0504-localize.hook.chroot" >> "${DIR}/livesys/config/hooks/0504-localize.hook.chroot" # echo "apt-get update && apt-get --no-install-recommends --yes install $PKGLOC" >> "${DIR}/livesys/config/hooks/0504-localize.hook.chroot" # chmod 755 "${DIR}/livesys/config/hooks/0504-localize.hook.chroot" fi # chroot stage: NTP query during system boot cat - > ${DIR}/livesys/config/includes.chroot/usr/share/dktoolian/ntpserver.sed < /dev/null 2>&1\nexit 0 EOF echo '#! /bin/sh' > "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" if [ "X$NTPSERVER" != "X" -a "X$USENTPDAEMON" != "Xyes" ] then echo "sed -i -f /usr/share/dktoolian/ntpserver.sed /etc/rc.local" >> "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" fi echo "# rm -fr /usr/share/dktoolian/ntpserver.sed" >> "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" echo "/usr/local/bin/dktoolian-ntp $NTPSERVER" >> "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" echo "rm -fr /usr/local/bin/dktoolian-ntp" >> "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" echo "rm -fr /usr/share/dktoolian/ntp.conf.template" >> "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" chmod 755 "${DIR}/livesys/config/hooks/0505-ntpdate.hook.chroot" # binary stage: modify boot menu, avoid installation items BOOTMENUCFG="binary/isolinux/menu.cfg" ISOLINUXCFG="binary/isolinux/isolinux.cfg" SPLASHPNG="binary/isolinux/splash.png" if [ "X$LIVETYPE" = "Xnfs" ] then BOOTMENUCFG="tftpboot/menu.cfg" ISOLINUXCFG="tftpboot/pxelinux.cfg/default" SPLASHPNG="tftpboot/splash.png" fi cat - > ${DIR}/livesys/config/hooks/0990-isolinux.hook.binary <> "${DIR}/livesys/config/hooks/0990-isolinux.hook.binary" fi cat - >> ${DIR}/livesys/config/hooks/0990-isolinux.hook.binary <