diff --git a/install-virtual.conf b/install-virtual.conf deleted file mode 100644 index cb26954..0000000 --- a/install-virtual.conf +++ /dev/null @@ -1 +0,0 @@ -Scripts::AptGet::Install::SelectPackage:: "install-virtual.lua"; diff --git a/install-virtual.lua b/install-virtual.lua deleted file mode 100755 index 43e02f2..0000000 --- a/install-virtual.lua +++ /dev/null @@ -1,44 +0,0 @@ --- This script will perform custom selections when a virtual package --- is required --- --- Author: Silvan Calarco Copyright (c) 2005-2009 --- - --- Allow someone to disable this without removing the script. - -if confget("APT::Get::install-virtual/b", "true") == "false" then - return -end -selectnames = { "kernel-mamba-wireless", "kernel-mamba-sound-backport" } -knames = { "mamba" } --- get kernel package name for running kernel (kernel-smp, kernel, etc) -function get_kerneltype() - return string.gsub(posix.uname("%r"), "[%d.]*(.*)", "%1") -end - --- get kernel package prefix name -function get_kernelname() - return "kernel"; -end - -kernel_suffix = get_kerneltype() -kernel_prefix = get_kernelname() - -for i, pkg in pairs(packagenames) do - -- select correct kernel package - -- the choiche is for the shortest match so for instance if kernel_suffix is mamba - -- the mamba package is preferred over mamba-64GB - if (string.find(pkg,kernel_prefix.."-") == 1) then - if not (kernel_suffix == "") and (string.find(pkg,kernel_suffix)) then - if (not selected) then - selected=pkgfind(pkg) - else - if (string.len(pkg) < string.len(tostring(selected))) then - selected=pkgfind(pkg) - end - end - end - end - -end -return