#!/bin/sh# enable online repos if possible, just quit if anything's wrongrepo_source='/etc/apt/sources.list.d/alt.list'host='http://ftp.altlinux.org'[-s"$repo_source"]||exit 0# regexps from alterator-pkg (via installer-feature-online-repo)prefix_re="[[:space:]]*rpm[[:space:]]\+\([^[:space:]]\+[[:space:]]\+\)\?"updates_re="${prefix_re}http:\/\/\([^[:space:]]\+\)[[:space:]]*"# architectureshost_arch="$(rpm --eval'%_host_cpu')"["$host_arch"="x86_64"]&&compat="x86_64-i586"||compat=