-
-# -mkdir -p /etc/rc.d/helper
-# for i in $(DIR_SRC)/src/rc.d/* ; do \
-# if [ -f $$i ]; then \
-# sed "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i > /etc/rc.d/`basename $$i`; \
-# fi; \
-# done
-# for i in $(DIR_SRC)/src/rc.d/helper/* ; do \
-# if [ -f $$i ]; then \
-# sed "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i > /etc/rc.d/helper/`basename $$i`; \
-# fi; \
-# done
-# chmod -R 755 /etc/rc.d
-# chgrp nobody /etc/rc.d/rc.red
-# chmod 4750 /etc/rc.d/rc.red
+
+ ln -sf ../../dnsmasq /etc/rc.d/init.d/networking/red.up/05-RS-dnsmasq
+ ln -sf ../../firewall /etc/rc.d/init.d/networking/red.up/20-RL-firewall
+ ln -sf ../../../../../usr/local/bin/outgoingfwctrl \
+ /etc/rc.d/init.d/networking/red.up/22-outgoingfwctrl
+ ln -sf ../../../../../usr/local/bin/snortctrl \
+ /etc/rc.d/init.d/networking/red.up/23-RS-snort
+ ln -sf ../../../../../usr/local/bin/qosctrl \
+ /etc/rc.d/init.d/networking/red.up/24-RS-qos
+ ln -sf ../../../../../usr/local/bin/setportfw \
+ /etc/rc.d/init.d/networking/red.up/25-portfw
+ ln -sf ../../../../../usr/local/bin/setxtaccess \
+ /etc/rc.d/init.d/networking/red.up/26-xtaccess
+ ln -sf ../../../../../usr/local/bin/dialctrl.pl \
+ /etc/rc.d/init.d/networking/red.up/99-U-dialctrl.pl
+ ln -sf ../../squid /etc/rc.d/init.d/networking/red.up/27-RS-squid
+
+ ln -sf ../../dnsmasq /etc/rc.d/init.d/networking/red.down/05-RS-dnsmasq
+ ln -sf ../../firewall /etc/rc.d/init.d/networking/red.down/20-RL-firewall
+ ln -sf ../../../../../usr/local/bin/dialctrl.pl \
+ /etc/rc.d/init.d/networking/red.down/99-D-dialctrl.pl
+
+ for i in green blue orange; do \
+ ln -sf any /etc/rc.d/init.d/networking/$$i; \
+ done
+