diff options
author | classabbyamp <void@placeviolette.net> | 2022-06-14 20:36:03 -0400 |
---|---|---|
committer | Toyam Cox <aviator45003@gmail.com> | 2022-06-14 21:22:41 -0400 |
commit | 180cdd878573c0988f6d7ceadec4c6904f7de254 (patch) | |
tree | 56f84fb671c50df0258113d251d9d06725413f6d /xuname | |
parent | d2da684db5dcb98b2e58a923a74e49811f71fc9a (diff) | |
download | xtools-180cdd878573c0988f6d7ceadec4c6904f7de254.tar.gz xtools-180cdd878573c0988f6d7ceadec4c6904f7de254.tar.xz xtools-180cdd878573c0988f6d7ceadec4c6904f7de254.zip |
xuname: replace alpha.de with repo-default
Diffstat (limited to 'xuname')
-rwxr-xr-x | xuname | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xuname b/xuname index 7c63755..da56a50 100755 --- a/xuname +++ b/xuname @@ -11,10 +11,10 @@ VM=$(dmesg 2>/dev/null | awk '/Hypervisor detected/{print $NF}') CPU=$(cat /proc/cpuinfo |awk '/^vendor_id/{print $NF;exit}') [ -z "$CPU" ] && CPU=$(cat /proc/cpuinfo |awk '/^platform/{print $NF;exit}') REPO=$(xbps-query --regex -p repository -s '.' | cut -d/ -f2- | sort -u | awk ' - /^\/alpha.de.repo.voidlinux.org\/current\/multilib/ {m=m"m"} - /^\/alpha.de.repo.voidlinux.org\/current\/debug/ {d=d"d"} - /^\/alpha.de.repo.voidlinux.org\/current\/.*\/nonfree/ {n=n"n"} - /^\/alpha.de.repo.voidlinux.org\/current/ {r=r"r"} + /^\/repo-default.voidlinux.org\/current\/multilib/ {m=m"m"} + /^\/repo-default.voidlinux.org\/current\/debug/ {d=d"d"} + /^\/repo-default.voidlinux.org\/current\/.*\/nonfree/ {n=n"n"} + /^\/repo-default.voidlinux.org\/current/ {r=r"r"} /xdowngrade-/ {D=D"D"} !/alpha.de.voidlinux.org/ && !/xdowngrade-/ {F=F"F"} END { print r m d n D F } |