#!/bin/bash . /usr/share/slax/slaxbuildlib # SLAX_BUNDLE_NAME="amd-catalyst" # SLAX_BUNDLE_VERSION="13.4-kv3.8.2" # SLAX_BUNDLE_DESCRIPTION="AMD / ATI Proprietary Drivers for HD5000~7000 series Type amdsetup in console to run the configuration script. " # artwork, games, network, develop, console, graphics, # editors, security, drivers, libraries, education # multimedia, system, multilang, utilities # SLAX_BUNDLE_CATEGORIES="drivers" # SLAX_BUNDLES_REQUIRED="" # SLAX_BUNDLES_REQUIRED_TO_COMPILE_ONLY="kernel-devel" # SLAX_BUNDLE_MAINTAINER_NAME="guy" SLAX_BUNDLE_MAINTAINER_EMAIL="guy1221@gmx.com" # SLAX_BUNDLE_SOURCE_DOWNLOAD[0]="http://www2.ati.com/drivers/linux/amd-catalyst-13.4-linux-x86.x86_64.zip" SLAX_BUNDLE_SOURCE_DOWNLOAD[1]="" SLAX_BUNDLE_SOURCE_DOWNLOAD[2]="" check_variables_for_errors download_all_sources init_bundle_target_dir activate_required_bundles # ${SLAX_ARCH} # ${SLAX_CFLAGS} # ${SLAX_BUNDLE_TARGET} # ${SLAX_LIBDIR} # ${SLAX_64_FLAG} # ${SLAX_CURRENT_BUILDSCRIPT_DIR} # ${SLAX_CONFIGURE_OPTIONS} # ----------------- unzip amd-catalyst-13.4-linux-x86.x86_64.zip sh ./amd-catalyst-13.4-linux-x86.x86_64.run --buildpkg installpkg -root ${SLAX_BUNDLE_TARGET} *.tgz # configuration script echo '#!/bin/bash path=:/ echo "Run aticonfig" aticonfig --initial echo "Copy amdpcsdb" cp /etc/ati/amdpcsdb.default /etc/ati/amdpcsdb echo "Unzip driver" gunzip /lib/modules/3.8.2/external/fglrx.ko.gz echo "Running depmod -a" depmod -a echo "Blacklist radeon" echo blacklist radeon >> /etc/modprobe.d/radeonblacklist.conf echo blacklist radeonhd >> /etc/modprobe.d/radeonblacklist.conf echo "Copy xorg.conf" cp /etc/X11/xorg.conf /etc/X11/xorg.conf.d/ echo "Done!" echo "To save your driver configuration for ram mode:" echo "cd /mnt/live/memory" echo "dir2sb changes myconfig.sb" echo "and copy myconfig.sb to slax/modules" echo "recommended to do this from a fresh state as not to bloat your configuration module"' > "${SLAX_BUNDLE_TARGET}/usr/bin/amdsetup" chmod +x ${SLAX_BUNDLE_TARGET}/usr/bin/amdsetup # ----------------- # create_slax_bundle