NSLU2-Linux
view · edit · print · history

Info.BootSequencePage History

Hide minor edits - Show changes to markup

March 01, 2009, at 03:51 AM by dbh -- changed one rc.tthtpd to rc.thttpd
Changed line 47 from:
  • Calls /etc/rc.d/rc.tthtpd to start http server for Setup GUI (can be diverted by /unslung/rc.thttpd).
to:
  • Calls /etc/rc.d/rc.thttpd to start http server for Setup GUI (can be diverted by /unslung/rc.thttpd).
February 09, 2009, at 12:31 AM by dbh -- corrected bootdisk to include internal flash detail
Changed lines 56-57 from:
  • Calls /etc/rc.d/rc.bootdisk, which tries to locate and run scripts from mounted FAT/NTFS partitions. Thus a simple way to configure the system based on which disk is attached. (UseTheBootMechanism)
to:
  • Calls /etc/rc.d/rc.bootdisk, which tries to locate and run scripts from a (Linksys) mounted FAT/NTFS partition if running from internal flash.

(UseTheBootMechanism)

February 08, 2009, at 11:14 PM by dbh -- add note about onetouch_detect to rc.quickset line
Changed line 51 from:
  • Calls /etc/rc.d/rc.quickset for USB setup (can be diverted by /unslung/rc.quickset).
to:
  • Calls /etc/rc.d/rc.quickset for USB setup and starting onetouch_detect (can be diverted by /unslung/rc.quickset).
February 08, 2009, at 10:51 PM by dbh -- edited description, added link to bootdisk line in sequence
Changed line 56 from:
  • Calls /etc/rc.d/rc.bootdisk, which tries to locate and run scripts from the mounted partitions, if the machine is running from internal flash. (Can someone familiar with this script tell us a little more about it?)
to:
  • Calls /etc/rc.d/rc.bootdisk, which tries to locate and run scripts from mounted FAT/NTFS partitions. Thus a simple way to configure the system based on which disk is attached. (UseTheBootMechanism)
September 01, 2008, at 07:32 PM by fcarolo -- updated info and formatting
Changed line 33 from:
  • Loads any NLS code page modules fund under /lib/modules/2.4.22-xfs/kernel/fs/nls/.
to:
  • Loads any NLS code page modules found under /lib/modules/2.4.22-xfs/kernel/fs/nls/.
September 01, 2008, at 07:24 PM by fcarolo -- updated info and formatting
Changed lines 12-15 from:

Unslung 6.x boot sequence

This is a list of the events that happen at boot for Unslung 6.x. It may not be accurate for previous versions.

to:

Unslung 6.10 boot sequence

This is a list of the events that happen at boot for Unslung 6.10. It may not be accurate for previous versions.

Changed lines 18-58 from:
  1. /linuxrc is run from the initrd image. If the NSLU2 has been properly unslung, it will pivot to the appropriate root disk (usually /dev/sda1), which means that the correct root partition will be mounted at / and the initrd will move to /initrd. After pivoting, it will invoke /bin/init.
  2. init checks /etc/inittab, which is used to start syslogd and klogd.
  3. init calls /etc/rc (can be diverted by /unslung/rc), which in turn:
    1. Mounts proc and usbdevfs filesystems.
    2. Remounts the roor filesystem read-write.
    3. Configures the loopback interface and loads kernel modules for the Ethernet driver.
    4. Calls /etc/rc.d/rc.sysinit (can be diverted by @@/unslung/rc.sysinit) to start other services, which in turn:
      1. Calls /etc/rc.d/rc.functions to load check_status function, used to print status messages ("OK" or "FAILED") to console right after each service or auxiliar script is invoked.
      2. Loads network settings from /etc/sysconfig/network.
      3. Creates ramdisks for /dev and /var, if the system is running from internal flash.
      4. Clean up /var/run and /var/lock, in case something was left behind from a previous crash.
      5. Creates empty /var/log/wtmp and /var/run/utmp files, if they do not exist already.
      6. Sets the machine hostname.
      7. Calls /etc/rc.d/rc.modules to load kernel modules (can be diverted by /unslung/rc.modules), which in turn:
        1. Loads modules for power and reset buttons, real time clock and NTFS file system (ufsd).
        2. Loads any NLS code page modules fund under /lib/modules/2.4.22-xfs/kernel/fs/nls/.
      8. Calls /etc/rc.d/rc.locmods, which is not used (empty file).
      9. Calls /etc/rc.d/rc.lan, which is not used (empty file).
      10. Calls /etc/rd.c/rc.network to configure network (can be diverted by /unslung/rc.network), which in turn:
        1. Calls /sbin/ifup to do actual network setup, that:
          1. Loads /etc/sysconfig/network to configure network variables (global).
          2. Loads /etc/sysconfig/network-scripts/ifcfg-ixp0 for network configuration variables (interface).
          3. Creates new /etc/hosts file.
          4. Configures the ixp0 interface, either using the DHCP client /sbin/udhcpc or using a static address, according to settings.
          5. Adds a multicast route to 239.0.0.0/8.
      11. Calls /etc/rc.d/rc.1 (can be diverted by /unslung/rc.1), note that Unslung does not have the actual concept of different run levels. This script, in turn:
        1. Calls /etc/rc.d/rc.bootbin (a binary in /sbin) which uses CGI_ds.conf for configuration variables set by web setup GUI
        2. Calls /etc/rc.d/rc.rstimezone to install local timezone file, get time from hwclock. Can be diverted by /unslung/rc.rstimezone
        3. Calls /etc/rc.d/rc.reset_usrgrpshare to set up passwords, user groups. Can be diverted by /unslung/rc.reset_usrgrpshare
          1. Calls /usr/sbin/reset_ugs for smb.info, .htpasswd
        4. Calls /etc/sbin/TelnetPassword (a binary) to generate telnet account password?
        5. Calls /etc/rc.d/rc.tthtpd to start http server for Setup GUI. Can be diverted by /unslung/rc.thttpd
        6. Calls /etc/rc.d/rc.samba to start samba server. Can be diverted by /unslung/rc.samba
        7. Calls /usr/sbin/download (a binary) to watch for fimware updates?
        8. Sets up ramfs - /tmp
        9. Calls /etc/rc.d/rc.quickset for USB setup. Can be diverted by /unslung/rc.quickset
        10. Calls /etc/rc.d/rc.crond to start crond. Can be diverted by /unslung/rc.crond
        11. Calls /etc/rc.d/rc.local to change ownership of /share, misc setup. Can be diverted by /unslung/rc.local
        12. Calls /etc/rc.d/rc.quota to verify and enable disk quotas. Can be diverted by /unslung/rc.quota
        13. Calls /etc/rc.d/rc.unslung which is a driver for /opt/etc/init.d S??* files. Note: .sh files are inlined.
to:
  • /linuxrc is run from the initrd image. If the NSLU2 has been properly unslung, it will pivot to the appropriate root disk (usually /dev/sda1), which means that the correct root partition will be mounted at / and the initrd will move to /initrd. After pivoting, it will invoke /bin/init.
  • init checks /etc/inittab, which is used to start syslogd and klogd.
  • init calls /etc/rc (can be diverted by /unslung/rc), which in turn:
    • Mounts proc and usbdevfs filesystems.
    • Remounts the root filesystem read-write.
    • Configures the loopback interface and loads kernel modules for the Ethernet driver.
    • Calls /etc/rc.d/rc.sysinit (can be diverted by /unslung/rc.sysinit) to start other services, which in turn:
      • Calls /etc/rc.d/rc.functions to load check_status function, used to print status messages ("OK" or "FAILED") to console right after each service or auxiliar script is invoked.
      • Loads network settings from /etc/sysconfig/network.
      • Creates ramdisks for /dev and /var, if the system is running from internal flash.
      • Clean up /var/run and /var/lock, in case something was left behind from a previous crash.
      • Creates empty /var/log/wtmp and /var/run/utmp files, if they do not exist already.
      • Sets the machine hostname.
      • Calls /etc/rc.d/rc.modules to load kernel modules (can be diverted by /unslung/rc.modules), which in turn:
        • Loads modules for power and reset buttons, real time clock and NTFS file system (ufsd).
        • Loads any NLS code page modules fund under /lib/modules/2.4.22-xfs/kernel/fs/nls/.
      • Calls /etc/rc.d/rc.locmods, which is not used (empty file).
      • Calls /etc/rc.d/rc.lan, which is not used (empty file).
      • Calls /etc/rd.c/rc.network to configure network (can be diverted by /unslung/rc.network), which in turn:
        • Calls /sbin/ifup to do actual network setup, that:
          • Loads /etc/sysconfig/network to configure network variables (global).
          • Loads /etc/sysconfig/network-scripts/ifcfg-ixp0 for network configuration variables (interface).
          • Creates new /etc/hosts file.
          • Configures the ixp0 interface, either using the DHCP client /sbin/udhcpc or using a static address, according to settings.
          • Adds a multicast route to 239.0.0.0/8.
      • Calls /etc/rc.d/rc.1 (can be diverted by /unslung/rc.1), note that Unslung does not have the actual concept of different run levels. This script, in turn:
        • Calls /etc/rc.d/rc.bootbin, which is simply a call to the /sbin/rc.bootbin Linksys binary, a program that uses /etc/CGI_ds.conf for handling configuration variables set by web setup GUI (/etc/rc.d/rc.bootbin can by diverted by /unslung/rc.bootbin)
        • Calls /etc/rc.d/rc.rstimezone to install local timezone file, get time from hwclock (can be diverted by /unslung/rc.rstimezone).
        • Calls /etc/rc.d/rc.reset_usrgrpshare to set up passwords, user and group information for Samba shares using a Linksys binary utility at /usr/sbin/reset_ugs (can be diverted by /unslung/rc.reset_usrgrpshare).
        • Calls /etc/rc.d/rc.tthtpd to start http server for Setup GUI (can be diverted by /unslung/rc.thttpd).
        • Calls /etc/rc.d/rc.samba to start the Samba server (can be diverted by /unslung/rc.samba).
        • Calls /etc/rc.d/rc.xinetd to start the inetd server (can be diverted by /unslung/rc.xinetd).
        • Sets up a ramfs for /tmp, if the machine is running from the internal flash.
        • Calls /etc/rc.d/rc.quickset for USB setup (can be diverted by /unslung/rc.quickset).
        • Calls /etc/rc.d/rc.crond to start crond (can be diverted by /unslung/rc.crond).
        • Calls /etc/rc.d/rc.local to fix ownership of /share and other miscellaneous setup (can be diverted by /unslung/rc.local), that includes:
          • Calls /etc/rc.d/rc.quota to check for user quotas (can be diverted by /unslung/rc.quota).
        • Calls /etc/rc.d/rc.optware-start, which is a driver to run startup scripts for Optware packages, located at /opt/etc/init.d/S??*. Note that the individual .sh files are inlined (can be diverted by /unslung/rc.optware-start).
        • Calls /etc/rc.d/rc.bootdisk, which tries to locate and run scripts from the mounted partitions, if the machine is running from internal flash. (Can someone familiar with this script tell us a little more about it?)
Added lines 59-66:

Disabled scripts

  • The call to /etc/rc.d/rc.syslogd at /etc/rc.d/rc.sysinit is commented, syslogd and klog are started from inittab.
  • A call to /usr/sbin/TelnetPassword, a binary utility from Linksys that apparently checks /etc/passwd for an account named ourtelnetrescuer (probable leftover from Linksys development) is commented out in /etc/rc.d/rc.1.
  • A call to /usr/sbin/download, a binary utility from Linksys (watch for firmware updates?) is commented in /etc/rc.d/rc.1.

Changed lines 69-71 from:
  1. /etc/rc.d/rc.halt is called by the GUI or halt command to kill servers for shutdown. Can be diverted by /unslung/rc.halt
    1. Calls /sbin/halt-test to kill servers and unmount disks
to:
  • /etc/rc.d/rc.halt is called by the GUI or halt command to kill servers for shutdown. Can be diverted by /unslung/rc.halt
    • Calls /sbin/halt-test to kill servers and unmount disks
Changed lines 76-77 from:
  1. /etc/rc.d/rc.reboot is called by the GUI or reboot command to kill servers and unmount disks for reboot. Can be diverted by /unslung/rc.reboot
to:
  • /etc/rc.d/rc.reboot is called by the GUI or reboot command to kill servers and unmount disks for reboot. Can be diverted by /unslung/rc.reboot
Changed lines 245-246 from:
 # Extract the GUI timezone from the .conf file
 # Copy the corresponding /usr/zoneinfo file over /usr/local/localtime
to:
 * Extract the GUI timezone from the .conf file
 * Copy the corresponding /usr/zoneinfo file over /usr/local/localtime
September 01, 2008, at 06:47 PM by fcarolo -- updated info and formatting
Changed lines 12-13 from:

Linksys and Unslung boot sequence

to:

Unslung 6.x boot sequence

This is a list of the events that happen at boot for Unslung 6.x. It may not be accurate for previous versions.

Changed lines 18-34 from:

(I am using unslung 6.8, and I can't quite get this to match up. My Linux-fu is weak, so please correct me, or at least double check me with a guru. My /linuxrc calls /bin/init, instead of vice-versa. My /linuxrc has no code in it to look for a diversion script, so /unslung/rc.linuxrc will never get called. I can see syslogd and klogd in /etc/inittab, but after that, I can't tell what happens next in the boot sequence. How does /etc/rc get called? -vermonohue, funhouse *at* vermonohue*com )

(I believe the sequence is /linuxrc -> /bin/init -> /etc/rc -> /etc/rc.d/rc.sysinit ShadowJK? 2007-12-26)

  1. Init is called first
    1. References /inittab to start syslogd/klogd
    2. References /linuxrc to mount root filesystem and record /proc/sys/kernel/real-root-dev. RAM=0x100, disk1=0x802, disk2=0x812. Can be diverted by /unslung/rc.linuxrc
    3. Calls /etc/rc to re-mount root filesystem rw, install network drivers. Can be diverted by /unslung/rc
      1. Calls /etc/rc.d/rc.sysinit to set up path, ramfs /var/lock/samba & /var/log. Can be diverted by /unslung/rc.sysinit
        1. Calls /etc/rc.d/rc.functions for status function (OK, Failed) for console log
        2. Calls /etc/rc.d/rc.modules to load kernel modules (power, reset buttons; rtc driver). Can be diverted by /unslung/rc.modules
        3. Calls /etc/rc.d/rc.locmods which is not used
        4. Calls /etc/rc.d/rc.lan which is not used
        5. Calls /etc/rd.c/rc.network to configure network but may not be used. Can be diverted by /unslung/rc.network
          1. Calls ifup which uses /etc/sysconfig/network to configure network variables (global)
            1. Calls /etc/sysconfig/network-scripts/ifcfg-ixp0 for network configuration variables (interface)
        6. Calls /etc/rc.d/rc.1 for runlevel 1 initialization. Can be diverted by /unslung/rc.1
to:
  1. /linuxrc is run from the initrd image. If the NSLU2 has been properly unslung, it will pivot to the appropriate root disk (usually /dev/sda1), which means that the correct root partition will be mounted at / and the initrd will move to /initrd. After pivoting, it will invoke /bin/init.
  2. init checks /etc/inittab, which is used to start syslogd and klogd.
  3. init calls /etc/rc (can be diverted by /unslung/rc), which in turn:
    1. Mounts proc and usbdevfs filesystems.
    2. Remounts the roor filesystem read-write.
    3. Configures the loopback interface and loads kernel modules for the Ethernet driver.
    4. Calls /etc/rc.d/rc.sysinit (can be diverted by @@/unslung/rc.sysinit) to start other services, which in turn:
      1. Calls /etc/rc.d/rc.functions to load check_status function, used to print status messages ("OK" or "FAILED") to console right after each service or auxiliar script is invoked.
      2. Loads network settings from /etc/sysconfig/network.
      3. Creates ramdisks for /dev and /var, if the system is running from internal flash.
      4. Clean up /var/run and /var/lock, in case something was left behind from a previous crash.
      5. Creates empty /var/log/wtmp and /var/run/utmp files, if they do not exist already.
      6. Sets the machine hostname.
      7. Calls /etc/rc.d/rc.modules to load kernel modules (can be diverted by /unslung/rc.modules), which in turn:
        1. Loads modules for power and reset buttons, real time clock and NTFS file system (ufsd).
        2. Loads any NLS code page modules fund under /lib/modules/2.4.22-xfs/kernel/fs/nls/.
      8. Calls /etc/rc.d/rc.locmods, which is not used (empty file).
      9. Calls /etc/rc.d/rc.lan, which is not used (empty file).
      10. Calls /etc/rd.c/rc.network to configure network (can be diverted by /unslung/rc.network), which in turn:
        1. Calls /sbin/ifup to do actual network setup, that:
          1. Loads /etc/sysconfig/network to configure network variables (global).
          2. Loads /etc/sysconfig/network-scripts/ifcfg-ixp0 for network configuration variables (interface).
          3. Creates new /etc/hosts file.
          4. Configures the ixp0 interface, either using the DHCP client /sbin/udhcpc or using a static address, according to settings.
          5. Adds a multicast route to 239.0.0.0/8.
      11. Calls /etc/rc.d/rc.1 (can be diverted by /unslung/rc.1), note that Unslung does not have the actual concept of different run levels. This script, in turn:
Changed line 56 from:
  1. Calls /etc/rc.d/rc.quota to verify and enable disk quotas. Can be diverted by /unslung/rc.quota
to:
  1. Calls /etc/rc.d/rc.quota to verify and enable disk quotas. Can be diverted by /unslung/rc.quota
December 25, 2007, at 11:22 PM by ShadowJK --
Changed lines 18-19 from:

(I believe the sequence is /linuxrc -> /bin/init -> /etc/rc -> /etc/rc.d/rc.sysinit -ShadowJK? 2007-12-26)

to:

(I believe the sequence is /linuxrc -> /bin/init -> /etc/rc -> /etc/rc.d/rc.sysinit ShadowJK? 2007-12-26)

December 25, 2007, at 11:21 PM by ShadowJK --
Added lines 18-19:

(I believe the sequence is /linuxrc -> /bin/init -> /etc/rc -> /etc/rc.d/rc.sysinit -ShadowJK? 2007-12-26)

August 31, 2007, at 10:45 PM by vermonohue -- linuxrc -> rc.linuxrc, new question
Changed lines 16-17 from:

(I am using unslung 6.8, and I can't quite get this to match up. My Linux-fu is weak, so please correct me, or at least double check me with a guru. My /linuxrc calls /bin/init, instead of vice-versa. My /linuxrc has no code in it to look for a diversion script, so /unslung/linuxrc will never get called. I can see syslogd and klogd in /etc/inittab, but after that, I can't tell what happens next in the boot sequence. -vermonohue, funhouse *at* vermonohue*com )

to:

(I am using unslung 6.8, and I can't quite get this to match up. My Linux-fu is weak, so please correct me, or at least double check me with a guru. My /linuxrc calls /bin/init, instead of vice-versa. My /linuxrc has no code in it to look for a diversion script, so /unslung/rc.linuxrc will never get called. I can see syslogd and klogd in /etc/inittab, but after that, I can't tell what happens next in the boot sequence. How does /etc/rc get called? -vermonohue, funhouse *at* vermonohue*com )

August 31, 2007, at 10:42 PM by vermonohue -- question for all
Added lines 16-17:

(I am using unslung 6.8, and I can't quite get this to match up. My Linux-fu is weak, so please correct me, or at least double check me with a guru. My /linuxrc calls /bin/init, instead of vice-versa. My /linuxrc has no code in it to look for a diversion script, so /unslung/linuxrc will never get called. I can see syslogd and klogd in /etc/inittab, but after that, I can't tell what happens next in the boot sequence. -vermonohue, funhouse *at* vermonohue*com )

August 23, 2007, at 06:24 PM by fcarolo -- fixed false wikilink
Changed line 33 from:
  1. Calls /etc/sbin/TelnetPassword? (a binary) to generate telnet account password?
to:
  1. Calls /etc/sbin/TelnetPassword (a binary) to generate telnet account password?
August 22, 2007, at 09:46 PM by vermonohue -- replaced \'halt\' with \'reboot\'
Changed lines 53-54 from:

Linksys and Unslung halt sequence

to:

Linksys and Unslung reboot sequence

July 13, 2007, at 05:03 PM by pedxing --
Deleted line 21:
  1. Calls ifup which uses /etc/sysconfig/network to configure network variables (global)
Changed lines 25-26 from:
  1. Calls /etc/rc.network to configure network but may not be used. Can be diverted by /unslung/rc.network
    1. Calls /sbin/ifup
to:
  1. Calls /etc/rd.c/rc.network to configure network but may not be used. Can be diverted by /unslung/rc.network
    1. Calls ifup which uses /etc/sysconfig/network to configure network variables (global)
July 13, 2007, at 05:02 PM by pedxing --
Added lines 14-15:

Most of these scripts live in /etc/rc.d. Nearly all scripts can be diverted with a same-named script in /unslung.

July 13, 2007, at 04:27 PM by pedxing -- Add boot sequence
Changed lines 12-13 from:

The Linksys specific utilities - description

to:

Linksys and Unslung boot sequence

  1. Init is called first
    1. References /inittab to start syslogd/klogd
    2. References /linuxrc to mount root filesystem and record /proc/sys/kernel/real-root-dev. RAM=0x100, disk1=0x802, disk2=0x812. Can be diverted by /unslung/rc.linuxrc
    3. Calls /etc/rc to re-mount root filesystem rw, install network drivers. Can be diverted by /unslung/rc
      1. Calls /etc/rc.d/rc.sysinit to set up path, ramfs /var/lock/samba & /var/log. Can be diverted by /unslung/rc.sysinit
        1. Calls /etc/rc.d/rc.functions for status function (OK, Failed) for console log
        2. Calls ifup which uses /etc/sysconfig/network to configure network variables (global)
        3. Calls /etc/rc.d/rc.modules to load kernel modules (power, reset buttons; rtc driver). Can be diverted by /unslung/rc.modules
        4. Calls /etc/rc.d/rc.locmods which is not used
        5. Calls /etc/rc.d/rc.lan which is not used
        6. Calls /etc/rc.network to configure network but may not be used. Can be diverted by /unslung/rc.network
          1. Calls /sbin/ifup
            1. Calls /etc/sysconfig/network-scripts/ifcfg-ixp0 for network configuration variables (interface)
        7. Calls /etc/rc.d/rc.1 for runlevel 1 initialization. Can be diverted by /unslung/rc.1
        8. Calls /etc/rc.d/rc.bootbin (a binary in /sbin) which uses CGI_ds.conf for configuration variables set by web setup GUI
        9. Calls /etc/rc.d/rc.rstimezone to install local timezone file, get time from hwclock. Can be diverted by /unslung/rc.rstimezone
        10. Calls /etc/rc.d/rc.reset_usrgrpshare to set up passwords, user groups. Can be diverted by /unslung/rc.reset_usrgrpshare
          1. Calls /usr/sbin/reset_ugs for smb.info, .htpasswd
        11. Calls /etc/sbin/TelnetPassword? (a binary) to generate telnet account password?
        12. Calls /etc/rc.d/rc.tthtpd to start http server for Setup GUI. Can be diverted by /unslung/rc.thttpd
        13. Calls /etc/rc.d/rc.samba to start samba server. Can be diverted by /unslung/rc.samba
        14. Calls /usr/sbin/download (a binary) to watch for fimware updates?
        15. Sets up ramfs - /tmp
        16. Calls /etc/rc.d/rc.quickset for USB setup. Can be diverted by /unslung/rc.quickset
        17. Calls /etc/rc.d/rc.crond to start crond. Can be diverted by /unslung/rc.crond
        18. Calls /etc/rc.d/rc.local to change ownership of /share, misc setup. Can be diverted by /unslung/rc.local
          1. Calls /etc/rc.d/rc.quota to verify and enable disk quotas. Can be diverted by /unslung/rc.quota
        19. Calls /etc/rc.d/rc.unslung which is a driver for /opt/etc/init.d S??* files. Note: .sh files are inlined.
Changed lines 44-47 from:

/bin

No programs here seem to access /etc/CGI_ds.conf

to:

Linksys and Unslung halt sequence

  1. /etc/rc.d/rc.halt is called by the GUI or halt command to kill servers for shutdown. Can be diverted by /unslung/rc.halt
    1. Calls /sbin/halt-test to kill servers and unmount disks
Added lines 51-65:

Linksys and Unslung halt sequence

  1. /etc/rc.d/rc.reboot is called by the GUI or reboot command to kill servers and unmount disks for reboot. Can be diverted by /unslung/rc.reboot

The Linksys specific utilities - description


/bin

No programs here seem to access /etc/CGI_ds.conf


September 18, 2006, at 07:54 PM by Thomas Kubernus --
Added lines 221-226:

Behaviour:

  • Deletes and recreates all smb.conf, usrgrp.info and share.info files

Started from:

  • /etc/rc.d/rc.reset_usrgrpshare at start-up
Added line 229:
February 14, 2006, at 07:28 PM by Nathan -- Added info about /usr/sbin/set_log
Changed lines 226-231 from:

/usr/sbin/set_status

(binary)

Started from: Various

to:
Changed lines 228-230 from:
  • Set LED and buzzer states.

/usr/sbin/smbpassword

to:
  • Logs status and error messages to /var/log/server.log and optionally sends these messages to the configured admin email address.
  • Message text seems to be pulled from /etc/cgi_msg and perhaps /etc/sys_msg

Syntax:

  • set_log <type> <0|1> <msg number> where 0 means send email and 1 is log only. <type> and <msg number> are indexes into /etc/cgi_msg file

Reference:

  • man set_log

/usr/sbin/set_status

Added lines 240-247:

Started from: Various

Behaviour:

  • Set LED and buzzer states.

/usr/sbin/smbpassword

(binary)

June 09, 2005, at 12:37 AM by tman --
Changed lines 112-113 from:
  • Beeps when the remaining disk space goes below a certain percentage (see http://www.nslu2-linux.org/wiki/Info/WhyTheNSLU2BeepsEveryEightHours)
to:
February 27, 2005, at 11:37 PM by ka6sox --
Changed line 29 from:
  • Create CGI_ds.conf from flash (SysConf?)
to:
  • Create CGI_ds.conf from flash (SysConf)
Changed lines 62-63 from:
to:
  • /usr/sbin/CheckDiskFull
  • /usr/sbin/QuickSet
Changed line 70 from:
  • Blinks front panel LEDs? and beeps in accordance with argument
to:
  • Blinks front panel LEDs and beeps in accordance with argument
Changed line 94 from:

/usr/sbin/WatchDog?

to:

/usr/sbin/WatchDog

Changed lines 105-106 from:

/usr/sbin/CheckBackup?

/usr/sbin/CheckDiskFull?

to:

/usr/sbin/CheckBackup

/usr/sbin/CheckDiskFull

Changed line 114 from:
to:

/usr/sbin/CheckPowerButton

Changed line 122 from:
to:

/usr/sbin/CheckResetButton

Changed line 138 from:

/usr/sbin/DO_ScanDisk

to:

/usr/sbin/DO_ScanDisk

Changed line 141 from:

/usr/sbin/DO_Shutdown

to:

/usr/sbin/DO_Shutdown

Changed line 150 from:

/usr/sbin/QuickSet?

to:

/usr/sbin/QuickSet

Changed line 156 from:

/usr/sbin/SetConf?

to:

/usr/sbin/SetConf

Changed line 166 from:

/usr/sbin/Set_TimeZone

to:

/usr/sbin/Set_TimeZone

Changed line 180 from:

/usr/sbin/TelnetPassword?

to:

/usr/sbin/TelnetPassword

Added line 250:
January 12, 2005, at 12:14 PM by tlhackque --
Changed line 8 from:

http://www.nslu2-linux.org/wiki/uploads/BootSeq.xls Boot Sequence.xls

to:

http://www.nslu2-linux.org/wiki/uploads/BootSeq.xls Boot Sequence.xls

Added lines 174-178:

References:

 # Extract the GUI timezone from the .conf file
 # Copy the corresponding /usr/zoneinfo file over /usr/local/localtime
Added lines 212-216:

Reference: This is a standard linux utility. See

January 12, 2005, at 11:56 AM by bobtm --
Changed lines 61-67 from:

Started from: /usr/sbin/CheckDiskFull?

to:

Started from:

  • /usr/sbin/CheckDiskFull?
  • /usr/sbin/QuickSet?
  • /usr/sbin/USB_Detect
  • /usr/sbin/download
  • /sbin/halt-test
  • /bin/busybox (!)
January 12, 2005, at 11:50 AM by bobtm --
Changed line 36 from:
to:

January 12, 2005, at 11:49 AM by bobtm --
Added lines 15-19:

/bin

No programs here seem to access /etc/CGI_ds.conf


Added line 56:

No programs here seem to access /etc/CGI_ds.conf

Added line 228:

No programs here seem to access /etc/CGI_ds.conf

January 12, 2005, at 11:39 AM by bobtm --
Added line 14:

Changed line 49 from:
to:

Added line 60:

Changed lines 182-183 from:

/usr/sbin/drivertodrivercp

/usr/sbin/find_ds

to:

(binary)

/usr/sbin/drivertodrivercp

(binary)

/usr/sbin/find_ds

(binary)

Changed line 194 from:

Read and write the hardware RTC in the Xicor chip. Sets the internal kernel clock to the RTC value at boot up.

to:
  • Read and write the hardware RTC in the Xicor chip. Sets the internal kernel clock to the RTC value at boot up.
Added line 199:

Suspected behaviour:

Added lines 213-216:

/usr/sbin/smbpassword

(binary)

Started from:

Added lines 218-220:

Suspected behaviour:

  • Accesses /etc/CGI_ds.conf

January 12, 2005, at 11:35 AM by bobtm --
Added line 68:
  • Accesses /etc/CGI_ds.conf
Added lines 77-78:
  • Accesses /etc/CGI_ds.conf (Linksys modified code)
Added line 115:
  • Accesses /etc/CGI_ds.conf
Changed lines 136-138 from:

/usr/sbin/QuickSet?

/usr/sbin/SetConf?

/usr/sbin/Set_TimeZone

to:

/usr/sbin/QuickSet?

(binary)

Suspected behaviour:

  • Accesses /etc/CGI_ds.conf

/usr/sbin/SetConf?

(binary)

Started from:

Behaviour:

  • Sets variables in /etc/CGI_ds.conf and files with similar structure
  • Accesses /etc/CGI_ds.conf

/usr/sbin/Set_TimeZone

(binary)

Started from: /etc/rc.d/rc.rstimezome

Suspected behaviour:

  • Reads time zone from config file and sets it in the system
  • Accesses /etc/CGI_ds.conf
Changed lines 188-189 from:

/usr/sbin/reset_ugs

/usr/sbin/set_log

to:

/usr/sbin/reset_ugs

(binary)

  • Accesses /etc/CGI_ds.conf

/usr/sbin/set_log

(binary)

January 12, 2005, at 11:18 AM by bobtm --
Changed line 103 from:
  • Waits for the user to press the power button, then shuts down
to:
  • Daemon that waits for the user to press the power button, then shuts down
Changed line 111 from:
  • Waits for the user to press the reset button, then resets the slug.
to:
  • Daemon that waits for the user to press the reset button, then resets the slug.
January 12, 2005, at 11:17 AM by bobtm --
Changed lines 113-114 from:

/usr/sbin/DO_Reboot

/usr/sbin/DO_ScanDisk

to:

/usr/sbin/DO_Reboot

(shell script)

Started from: /home/httpd/html/Managment/maintmode.cgi (web interface) Behaviour:

  • Logs reboot event, waits two seconds and reboots using /etc/rc.d/rc.reboot

/usr/sbin/DO_ScanDisk

(binary)

Added lines 124-131:

(shell script)

Started from: ?

Behaviour:

  • Logs reboot event, waits two seconds and shuts down using /etc/rc.d/rc.halt
Changed lines 143-144 from:

/usr/sbin/backup

to:

/usr/sbin/backup

January 12, 2005, at 11:05 AM by bobtm --
Changed line 95 from:
  • Beeps when the remaining disk space goes below a certain percentage
to:
  • Beeps when the remaining disk space goes below a certain percentage (see http://www.nslu2-linux.org/wiki/Info/WhyTheNSLU2BeepsEveryEightHours)
January 11, 2005, at 10:41 AM by bobtm --
Added lines 49-57:

/usr/bin

/usr/bin/Set_Led

(binary)

Started from: /usr/sbin/CheckDiskFull?

Suspected behaviour:

  • Blinks front panel LEDs? and beeps in accordance with argument
January 11, 2005, at 10:36 AM by bobtm --
Changed line 69 from:

(text)

to:

(shell script)

January 11, 2005, at 10:35 AM by bobtm --
Changed line 116 from:

Generates the ourtelnetrescueuser password based on the MAC address of the NSLU2.

to:
  • Generates the ourtelnetrescueuser password based on the MAC address of the NSLU2.
Changed line 125 from:

Listens for a drive unmount command by the Linksys Windows unmount utility.

to:
  • Listens for a drive unmount command by the Linksys Windows unmount utility.
Changed lines 144-161 from:

Set LED and buzzer states.

to:
  • Set LED and buzzer states.

/usr/libexec

/usr/libexec/bigram

(binary)

/usr/libexec/code

(binary)

/usr/libexec/frcode

(binary)

/usr/libexec/rmt

(binary)

Started from: ?

Behaviour:

  • Remote backup utility
January 11, 2005, at 10:26 AM by bobtm --
Added lines 41-49:

/sbin/halt-test

(shell script)

Started from: /etc/rc.d/rc.halt

Behaviour:

  • Kills Samba, waits a bit, then hangs up all other processes, umount drives, beeps and halts.
January 11, 2005, at 12:33 AM by tman --
Changed line 17 from:

(binary).

to:

(binary)

January 11, 2005, at 12:33 AM by tman --
Changed line 22 from:
  • mount attached USB storage devices (like HDD, flashdrive), both conf and data partitions and swap on /dev/sda3
to:
  • Mount attached USB storage devices (like HDD, flashdrive), both conf and data partitions and swap on /dev/sda3
Changed line 39 from:
  • Deamon listening on the network interface and will accept commands to flash the slug.
to:
  • Daemon listening on the network interface and will accept commands to flash the slug.
Changed line 65 from:
  • Makes sure Samba deamons, smbd and nmbd are running (if not, it starts them)
to:
  • Makes sure Samba daemons, smbd and nmbd are running (if not, it starts them)
Added lines 102-108:

(binary)

Started from: /etc/rc.d/rc.local

Behaviour: Generates the ourtelnetrescueuser password based on the MAC address of the NSLU2.

Added lines 111-117:

(binary)

Started from: /etc/rc.d/rc.local

Behaviour: Listens for a drive unmount command by the Linksys Windows unmount utility.

Added lines 122-126:

(binary)

Behaviour: Read and write the hardware RTC in the Xicor chip. Sets the internal kernel clock to the RTC value at boot up.

Added line 130:

(binary)

Added line 132:

Started from: Various

Changed lines 134-135 from:
to:

Behaviour: Set LED and buzzer states.

January 10, 2005, at 11:56 PM by bobtm --
Changed lines 71-72 from:

/usr/sbin/CheckDiskFull?

/usr/sbin/CheckPowerButton?

to:

/usr/sbin/CheckDiskFull?

(binary)

Started from: crond via /etc/crontab

Behaviour:

  • Beeps when the remaining disk space goes below a certain percentage

/usr/sbin/CheckPowerButton?

(binary)

Started from: /etc/rc.d/rc.local

Suspected behaviour:

  • Waits for the user to press the power button, then shuts down
Added lines 88-94:

(binary)

Started from: /etc/rc.d/rc.local

Suspected behaviour:

  • Waits for the user to press the reset button, then resets the slug.
January 10, 2005, at 11:11 PM by Gerald L Clark --
Added lines 25-26:
  • For static addresses, does equivalent of /sbin/ifup
  • Does swapon /dev/sda3 and swapon /dev/sdb3 if the swap partitions are available.
January 10, 2005, at 11:01 PM by bobtm --
Changed lines 12-14 from:

The Linksys specific utilities - description

to:

The Linksys specific utilities - description

/etc

Added lines 29-30:

/sbin

Added lines 39-40:

/usr/sbin

Deleted line 87:

/usr/sbin/stop_smb

January 10, 2005, at 11:00 PM by bobtm --
Added lines 61-82:

/usr/sbin/CGI_chk_save_pass

/usr/sbin/CheckBackup?

/usr/sbin/CheckDiskFull?

/usr/sbin/CheckPowerButton?

/usr/sbin/CheckResetButton?

/usr/sbin/DO_Reboot

/usr/sbin/DO_ScanDisk

/usr/sbin/DO_Shutdown

/usr/sbin/QuickSet?

/usr/sbin/SetConf?

/usr/sbin/Set_TimeZone

/usr/sbin/TelnetPassword?

/usr/sbin/backup

/usr/sbin/do_umount

/usr/sbin/drive_backup

/usr/sbin/drivertodrivercp

/usr/sbin/find_ds

/usr/sbin/hwclock

/usr/sbin/reset_ugs

/usr/sbin/set_log

/usr/sbin/set_status

/usr/sbin/stop_smb

January 10, 2005, at 10:55 PM by bobtm --
Added lines 42-63:

/usr/sbin/upnpd

(binary)

Started from: /etc/rd.d/rc.bootbit

Suspected behaviour:

  • Announces the slug services on the network in accordance with the upnp standard.

/usr/sbin/WatchDog?

(text)

Started from: crond via /etc/crontab

Behaviour:

  • Makes sure Samba deamons, smbd and nmbd are running (if not, it starts them)
  • Makes sure the web interface is running.
  • Trims the /var/log/messages file if exceeding 20kB
January 10, 2005, at 10:49 PM by bobtm --
Changed lines 10-11 from:

rc.bootbin

rc.bootbin is a binary file. Let's try to reverse engineer this.

to:

Changed line 12 from:

What does rc.bootbin do?

to:

The Linksys specific utilities - description

Changed lines 14-19 from:

Suspected:

to:

/etc/rc.d/rc.bootbin

(binary).

Started from: /etc/rc.d/rc.1

Suspected behaviour:

Added lines 26-41:

/sbin/download

(binary)

Started from: /etc/rc.d/rc.1

Suspected behaviour:

  • Deamon listening on the network interface and will accept commands to flash the slug.

/usr/sbin/USB_Detect

(binary)

Started from: /etc/rc.d/rc.quickset

Suspected behaviour:

  • Checks /proc/hd_conn and /proc/hd2_conn for drives connected to the two USB ports and handles mounting of them.
January 10, 2005, at 07:46 PM by tman --
Changed line 1 from:

This page is an attempt to document the NSLU2 linux boot sequence.

to:

This page is an attempt to document the NSLU2 Linux boot sequence.

Changed line 11 from:

rc.bootbin is a binanay file. Let's try to reverse engineer this.

to:

rc.bootbin is a binary file. Let's try to reverse engineer this.

Changed line 16 from:
  • mount attached usb storages devices (like hdd, flashdrive), both conf and data partitions and swap on /dev/sda3
to:
  • mount attached USB storage devices (like HDD, flashdrive), both conf and data partitions and swap on /dev/sda3
Changed line 19 from:
  • Starts uPnP deamons
to:
  • Starts uPnP daemons
January 10, 2005, at 07:42 PM by bobtm --
Added line 21:
  • Manipulates inetd.conf (probably with regards to the telnetd entry)
January 10, 2005, at 07:30 PM by bobtm --
Added line 20:
  • Wipes /etc/fstab and /etc/mtab if it feels like it
January 10, 2005, at 07:24 PM by bobtm --
Changed lines 18-19 from:
  • Starts the DHCP client and gets an IP address.
to:
  • Starts the DHCP client and gets an IP address
  • Starts uPnP deamons
January 10, 2005, at 07:23 PM by bobtm --
Changed lines 16-17 from:
  • mount attached usb storages devices (like hdd, flashdrive)
  • Create CGI_ds.conf from flash (SysConf?)
to:
  • mount attached usb storages devices (like hdd, flashdrive), both conf and data partitions and swap on /dev/sda3
  • Create CGI_ds.conf from flash (SysConf?)
  • Starts the DHCP client and gets an IP address.
January 10, 2005, at 06:39 PM by perlguru --
Changed lines 8-17 from:

http://www.nslu2-linux.org/wiki/uploads/BootSeq.xls Boot Sequence.xls

to:

http://www.nslu2-linux.org/wiki/uploads/BootSeq.xls Boot Sequence.xls

rc.bootbin

rc.bootbin is a binanay file. Let's try to reverse engineer this.

What does rc.bootbin do?

Suspected:

  • mount attached usb storages devices (like hdd, flashdrive)
  • Create CGI_ds.conf from flash (SysConf?)
January 03, 2005, at 02:51 AM by ka6sox --
Changed line 8 from:

http://www.nslu2-linux.org/wiki/uploads/Bootseq.xls Boot Sequence.xls

to:

http://www.nslu2-linux.org/wiki/uploads/BootSeq.xls Boot Sequence.xls

January 01, 2005, at 05:55 PM by ka6sox --
Changed line 8 from:

http://www.nslu2-linux.org/wiki/uploads/Bootseq.xls Boot Sequence

to:

http://www.nslu2-linux.org/wiki/uploads/Bootseq.xls Boot Sequence.xls

January 01, 2005, at 05:53 PM by ka6sox --
Changed line 5 from:

It's not elegant, but it has been helpful to me.

to:

It's not elegant, but it has been helpful to me.

Changed lines 7-8 from:
to:

http://www.nslu2-linux.org/wiki/uploads/Bootseq.xls Boot Sequence

January 01, 2005, at 05:49 PM by ka6sox --
Changed line 7 from:
to:
December 11, 2004, at 01:54 PM by tlhackque --
Changed line 1 from:

This page is an attempt to document the NSLU2 boot sequence.

to:

This page is an attempt to document the NSLU2 linux boot sequence.

Added lines 4-5:

It's not elegant, but it has been helpful to me.

December 11, 2004, at 01:25 PM by tlhackque --
Changed lines 1-5 from:

Describe BootSequencePage here.

to:

This page is an attempt to document the NSLU2 boot sequence.

This is helpful in figuring out where various services start, and where the diversion script hooks are.

Attach:NSLU2-Boot-Sequence-Spreadsheet.xls Δ

view · edit · print · history · Last edited by dbh.
Based on work by dbh, fcarolo, ShadowJK, vermonohue, pedxing, Thomas Kubernus, Nathan, tman, ka6sox, tlhackque, bobtm, Gerald L Clark, and perlguru.
Originally by tlhackque.
Page last modified on March 01, 2009, at 03:51 AM