Skip to content
Snippets Groups Projects
Select Git revision
  • 6b4b1813f0badaf298f91e30f255e636d0e8c5c1
  • master default protected
  • ws18
  • ss18
  • ws17
  • ss17
  • readme
  • offline_repo_integration
  • bash_sucks
  • ws15-final
  • ss15-final
  • ws14-final
  • ws14
13 results

customize_initrd

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    customize_initrd 3.12 KiB
    #!/bin/bash
    
    ###################################################################################
    # UCK - Ubuntu Customization Kit                                                  #
    # Copyright (C) 2006-2010 UCK Team                                                #
    #                                                                                 #
    # UCK is free software: you can redistribute it and/or modify                     #
    # it under the terms of the GNU General Public License as published by            #
    # the Free Software Foundation, either version 3 of the License, or               #
    # (at your option) any later version.                                             #
    #                                                                                 #
    # UCK is distributed in the hope that it will be useful,                          #
    # but WITHOUT ANY WARRANTY; without even the implied warranty of                  #
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                   #
    # GNU General Public License for more details.                                    #
    #                                                                                 #
    # You should have received a copy of the GNU General Public License               #
    # along with UCK.  If not, see <http://www.gnu.org/licenses/>.                    #
    ###################################################################################
    
    REMASTER_HOME=$1
    REMASTER_DIR="$REMASTER_HOME/remaster-root"
    INITRD_REMASTER_DIR="$REMASTER_HOME/remaster-initrd"
    
    echo "Using REMASTER_DIR=$REMASTER_DIR, INITRD_REMASTER_DIR=$INITRD_REMASTER_DIR"
    
    IRD="$INITRD_REMASTER_DIR"
    SCRIPT_DIR="`dirname $0`"
    
    if [ -e "$SCRIPT_DIR/customize_common" ]; then
            source "$SCRIPT_DIR/customize_common"
    fi
    
    function install_nmtelekinese()
    {
    	mkdir -p "$IRD/lip/nm"
    	cp "$SCRIPT_DIR/nmtelekinese/nmtelekinese.desktop" "$IRD/lip/nm"
    	cp "$SCRIPT_DIR/nmtelekinese/nmtelekinese.py" "$IRD/lip/nm"
    	cp "$SCRIPT_DIR/nmtelekinese/26mopsmops" "$IRD/scripts/casper-bottom/"
    	chmod +x "$IRD/scripts/casper-bottom/26mopsmops"
    }
    
    function install_libnsa()
    {
            mkdir -p "$IRD/lip/libnsa"
            cp "$SCRIPT_DIR/libnsa/libnsa.desktop" "$IRD/lip/libnsa"
            cp "$SCRIPT_DIR/libnsa/libnsa.sh" "$IRD/lip/libnsa"
            cp "$SCRIPT_DIR/libnsa/26libnsa" "$IRD/scripts/casper-bottom/"
            chmod +x "$IRD/lip/libnsa/libnsa.sh"
            chmod +x "$IRD/scripts/casper-bottom/26libnsa"
    }
    
    function add_no_bootloader_icon()
    {
    	mkdir -p "$IRD/lip/no-bootloader-icon"
    	cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-kdeui.desktop" "$IRD/lip/no-bootloader-icon/"
    #	cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-kdeui-no-bootloader.desktop" "$IRD/lip/no-bootloader-icon/"
    
    	cp "$SCRIPT_DIR/no-bootloader-icon/25adduser" "$IRD/scripts/casper-bottom/"
    	chmod +x "$IRD/scripts/casper-bottom/25adduser"
    }
    
    mkdir -p "$IRD/lip"
    install_nmtelekinese
    #install_libnsa
    add_no_bootloader_icon
    
    #copy custom lip hook
    cp "$SCRIPT_DIR/initrd_hook/24liphook" "$IRD/scripts/casper-bottom/"
    chmod +x "$IRD/scripts/casper-bottom/24liphook"
    cp "$SCRIPT_DIR/initrd_hook/ORDER" "$IRD/scripts/casper-bottom/"
    
    patch_all "$SCRIPT_DIR/initrd-patches/" "$IRD"