Third Chapter

DISKd sda1 - boot disk (You can mount this partition and change grub.conf to ElGnIs then reboot to enter single mode)

  • Enter ElGnIs

    1. /etc/rc.d/rc.sysinit

      • loopback interface

    2. /etc/rc.d/rc.mount

    3. /etc/rc.d/rcS

  • mkdir /conf/rc.d and put your code under here , /etc/rc.d will not be executed

S20if-order.sh

  • initiforder.sh

    • Check $NET_MOD

      • [ -f /conf/$driver.ko ]

        • true insmod

        • false modprobe

  • setup_mgmt_port.sh

    • Check $MANAGE_PORT or $HA_Support then oeen

S22if-setup.sh 1. ifwan.sh //setup WAN interface

  • wan_start - /sbin/dhcpcd -R -t 30 -c /ramfs/bin/dhcpcd.exe eth0

  • wan2_start

  • wan.sh //configure ip

  1. initifpost.sh

  2. linkMonitor.sh (use "ip monitor" [iproute2])

  3. if.sh //setup LAN interface

S45dhcpcd.sh (dhcp server)

  • dhcpd.sh

  • mk_dhcpd.conf.sh

  • ntp server cant not query before S35 because of default route

Last updated

Was this helpful?