diff options
Diffstat (limited to 'etc/centos-mirror.sh')
-rwxr-xr-x | etc/centos-mirror.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/centos-mirror.sh b/etc/centos-mirror.sh new file mode 100755 index 0000000..e8eb6a7 --- /dev/null +++ b/etc/centos-mirror.sh @@ -0,0 +1,7 @@ +#!/bin/sh +for file in /etc/yum.repos.d/CentOS*.repo; do + sed -i .orig \ + -e 's/^mirrorlist/#mirrorlist/' \ + -e 's/^#baseurl/baseurl/' \ + $file +done |