added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,48 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: firewalld
# Required-Start: $syslog $local_fs messagebus
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description:
# Description:
### END INIT INFO
. /etc/init.d/functions
firewalld=/usr/sbin/firewalld
pidfile=/var/run/firewalld.pid
case "$1" in
start)
echo -n "Starting firewalld: "
start-stop-daemon --start --quiet --exec $firewalld
echo "."
;;
stop)
echo -n "Stopping firewalld: "
start-stop-daemon --stop --quiet --pidfile $pidfile
echo "."
;;
restart)
echo -n "Stopping firewalld: "
start-stop-daemon --stop --quiet --pidfile $pidfile
echo "."
echo -n "Starting firewalld: "
start-stop-daemon --start --quiet --exec $firewalld
echo "."
;;
reload)
echo -n "Reloading firewalld: "
firewall-cmd --reload
echo "."
;;
status)
firewall-cmd --state
;;
*)
echo "Usage: /etc/init.d/firewalld {start|stop|restart|reload|status}" >&2
exit 1
esac

View File

@@ -0,0 +1,21 @@
#!/bin/sh
ret_val=0
# Check if all the kernel modules are available
FIREWALLD_KERNEL_MODULES="@@FIREWALLD_KERNEL_MODULES@@"
for m in $FIREWALLD_KERNEL_MODULES; do
if modprobe $m; then
echo "PASS: loading $m"
else
echo "FAIL: loading $m"
ret_val=1
fi
done
# Run the test suite from firewalld
# Failing testsuites: 203 226 241 250 270 280 281 282 285 286
# Problem icmpv6 compared against ipv6-icmptype?
/usr/share/firewalld/testsuite/testsuite -C /tmp -A || ret_val=1
exit $ret_val