Skip to content

Commit

Permalink
Check modules before use, add reject-netflix-ipv6 module
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed May 12, 2024
1 parent 08c725a commit 524fcd1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ for module in $MODULES; do
done
final_modules="$(echo "$final_modules" | tr '\n' ' ')"
echo "Final modules: $final_modules"

cp -r modules_in_container modules
cp -r user_modules_in_container user_modules

Expand Down Expand Up @@ -61,11 +62,28 @@ deal() {
done
}

echo "Checking module existence..."
for module in $final_modules; do
echo "$module"

if [ ! -d "modules/$module" ]; then
if [ ! -d "user_modules/$module" ]; then
echo "Module $module does not exist"
exit 1
fi
fi
done


deal modules
deal user_modules

echo "All packages: $all_packages"

echo ""
ls files -R
echo ""

make info
cat ./repositories.conf
if [ -z "$PROFILE" ]; then
Expand Down
11 changes: 11 additions & 0 deletions modules/reject-netflix-ipv6/files/etc/dnsmasq.d/netflix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 禁止奈飞解析IPV6地址
server=/netflix.com/#
address=/netflix.com/::
server=/netflix.net/#
address=/netflix.net/::
server=/nflxext.com/#
address=/nflxext.com/::
server=/nflximg.net/#
address=/nflximg.net/::
server=/nflxvideo.net/#
address=/nflxvideo.net/::
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "conf-dir=/etc/dnsmasq.d" >> /etc/dnsmasq.conf
3 changes: 3 additions & 0 deletions modules/ssh-permission/files/etc/uci-defaults/99-ssh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if [ -f /etc/dropbear/authorized_key ]; then
chmod 644 /etc/dropbear/authorized_keys
fi

0 comments on commit 524fcd1

Please sign in to comment.