rcS 875 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/sh
  2. if [ -c "/dev/ppp" ]
  3. then echo "."
  4. else
  5. mknod /dev/ppp c 108 0
  6. fi
  7. if [ ! -d "/run/lock" ]
  8. then
  9. mkdir -p /run/lock
  10. fi
  11. #---- expand rootfs if not done yet
  12. /etc/init.d/expandfs.sh
  13. #---- X30 /dev/ttyS2 Einstellungen
  14. switchserialmode -m rs485
  15. # Start all init scripts in /etc/init.d
  16. # executing them in numerical order.
  17. #
  18. for i in /etc/init.d/S??* ;do
  19. # Ignore dangling symlinks (if any).
  20. [ ! -f "$i" ] && continue
  21. case "$i" in
  22. *.sh)
  23. # Source shell script for speed.
  24. (
  25. trap - INT QUIT TSTP
  26. set start
  27. . $i
  28. )
  29. ;;
  30. *.detach)
  31. # start detached
  32. $i start &
  33. ;;
  34. *)
  35. # No sh extension, so fork subprocess.
  36. $i start
  37. ;;
  38. esac
  39. done
  40. #--- iptables settings
  41. echo 1 > /proc/sys/net/ipv4/ip_forward
  42. echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
  43. /root/portfwd.sh &
  44. #----