PeDitXOS Repository 2.7.1
مخزن جامع OpenWrt و پکیجهای اختصاصی PeDitX
۰. پاکسازی امن (پیشنهادی)
حذف تنظیمات قدیمی از customfeeds بدون آسیب به فایلهای سیستمی.
bash
sed -i '/repository.peditxos.ir/d' /etc/opkg/customfeeds.conf
sed -i '/peditxos_passwall/d' /etc/opkg/customfeeds.conf
sed -i '/immortalwrt/d' /etc/opkg/customfeeds.conf
sed -i '/openwrt-passwall/d' /etc/opkg/customfeeds.conf
echo "✅ Custom feeds cleaned safely."
۱. تنظیم مخزن رسمی OpenWrt
اتصال امن به سرور جدید با بررسی سلامت فایلها.
bash
# Ensure distfeeds.conf exists (Safe Check)
[ ! -s /etc/opkg/distfeeds.conf ] && cp /rom/etc/opkg/distfeeds.conf /etc/opkg/distfeeds.conf
sed -i '/peditxrepo.ir/d' /etc/opkg/distfeeds.conf
sed -i '/immortalwrt.org/d' /etc/opkg/distfeeds.conf
sed -i 's|https://downloads.openwrt.org|http://repository.peditxos.ir/openwrt|g' /etc/opkg/distfeeds.conf
sed -i 's|http://downloads.openwrt.org|http://repository.peditxos.ir/openwrt|g' /etc/opkg/distfeeds.conf
# Safe update with timeout
timeout 60 opkg update || echo "⚠️ Update timed out, but config is set."
۲. افزودن مخزن اختصاصی (IPK)
مناسب برای OpenWrt 24 و پایینتر.
bash
wget -O /tmp/ipk.pub http://repository.peditxos.ir/openwrt-passwall-build/ipk.pub
opkg-key add /tmp/ipk.pub
read release arch << EOF
$(. /etc/openwrt_release ; echo ${DISTRIB_RELEASE%.*} $DISTRIB_ARCH)
EOF
echo "src/gz peditxos_passwall_luci http://repository.peditxos.ir/openwrt-passwall-build/releases/packages-$release/$arch/passwall_luci" >> /etc/opkg/customfeeds.conf
echo "src/gz peditxos_passwall_pkgs http://repository.peditxos.ir/openwrt-passwall-build/releases/packages-$release/$arch/passwall_packages" >> /etc/opkg/customfeeds.conf
echo "src/gz peditxos_passwall2 http://repository.peditxos.ir/openwrt-passwall-build/releases/packages-$release/$arch/passwall2" >> /etc/opkg/customfeeds.conf
timeout 60 opkg update || echo "⚠️ Update timed out, but config is set."
۳. افزودن مخزن اختصاصی (APK)
مناسب برای OpenWrt 25/26 و بالاتر.
bash
wget -O /etc/apk/keys/apk.pub http://repository.peditxos.ir/openwrt-passwall-build/apk.pub
echo "http://repository.peditxos.ir/openwrt-passwall-build/releases/packages-25/x86_64/passwall_packages" >> /etc/apk/repositories
timeout 60 apk update || echo "⚠️ Update timed out, but config is set."
۴. دانلود دستی پکیجها
اگر ترجیح میدهید فایلها را مستقیماً دانلود و نصب کنید:
دانلود پکیجهای OpenWrt
repository.peditxos.ir/openwrt/
دانلود Passwall 1 & 2
repository.peditxos.ir/openwrt-passwall-build/
نکته مهم:
لطفاً دقت کنید که اگر سیستم شما از `apk` پشتیبانی میکند، نباید از دستورات `opkg` استفاده کنید. بخش ۳ مخصوص سیستمهای جدید است.
تشکر ویژه:
- PeDitX
- PeDitXRT
- OpenWrt & ImmortalWrt
- Mohamadreza Broujerdi
- Sia7ash