diff --git a/backup-opkg.sh b/backup-opkg.sh index 4996483..c478817 100755 --- a/backup-opkg.sh +++ b/backup-opkg.sh @@ -13,6 +13,7 @@ fix_dns() { local dns2="1.0.0.1" if ! grep -q "$dns1" /etc/resolv.conf; then printf "Patching DNS for restore... " + sed -i '/^nameserver/d' /etc/resolv.conf sed -i "1i nameserver $dns1" /etc/resolv.conf sed -i "2i nameserver $dns2" /etc/resolv.conf echo "OK"