X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=plugins%2Fknownos.php;h=33b5bed2448aea2eaf061dd48f665c472ee79920;hp=eda7b96425696e19dc6af388c08ff396af9f33bf;hb=b0651723ae8487b4791b01cfbdcebf2d76907bed;hpb=f3bb1ef4d1fb0297498f8a1a30c2332e2e5905e8 diff --git a/plugins/knownos.php b/plugins/knownos.php index eda7b96..33b5bed 100644 --- a/plugins/knownos.php +++ b/plugins/knownos.php @@ -37,11 +37,16 @@ function getKnownOSList() $kos["repotype"]["apt"][0] = "baseurl"; // OS's - $kos["os"]["Fedora"] = "Fedora"; - $kos["os"]["Debian"] = "Debian"; - $kos["os"]["RedHat"] = "RedHat Enterprise Linux"; - $kos["os"]["Ubuntu"] = "Ubuntu"; - $kos["os"]["CentOS"] = "Community Enterprise OS"; + $kos["os"]["short"]["fedora"] = "Fedora"; + $kos["os"]["short"]["debian"] = "Debian"; + $kos["os"]["short"]["redhat"] = "RedHat"; + $kos["os"]["short"]["ubuntu"] = "Ubuntu"; + $kos["os"]["short"]["centos"] = "CentOS"; + $kos["os"]["fedora"]["long"] = "Fedora"; + $kos["os"]["debian"]["long"] = "Debian"; + $kos["os"]["redhat"]["long"] = "RedHat Enterprise Linux"; + $kos["os"]["ubuntu"]["long"] = "Ubuntu"; + $kos["os"]["centos"]["long"] = "Community Enterprise OS"; // Repo types per os $kos["os"]["Fedora"]["repotype"] = "yum"; @@ -50,6 +55,12 @@ function getKnownOSList() $kos["os"]["Ubuntu"]["repotype"] = "apt"; $kos["os"]["CentOS"]["repotype"] = "yum"; + // architectyres + $kos["arch"]["intel32"] = "i386"; + $kos["arch"]["amdcrazy"] = "i586"; + $kos["arch"]["amd64"] = "x86_64"; + $kos["arch"]["amd64_2"] = "amd64"; + return $kos;