diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-06-03 01:09:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-06-03 01:09:41 +0000 |
commit | cdfff204a86b4190bc5c763c553abd4ecb81a4b6 (patch) | |
tree | ca15e7bdf00594eea9ef342a1ee338f3a34001fe | |
parent | db6e5348fef669b14f285ad33ec1ca16f0782a4b (diff) | |
download | pfsense-cdfff204a86b4190bc5c763c553abd4ecb81a4b6.zip pfsense-cdfff204a86b4190bc5c763c553abd4ecb81a4b6.tar.gz |
* Backout last commit
* Change the logic a bit by sleeping for 10 seconds after option 2 and then logout and log back in. This works around the strange strange shell issues on serial console.
-rwxr-xr-x | etc/rc.initial | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/etc/rc.initial b/etc/rc.initial index fa17292..78eb795 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -50,7 +50,7 @@ echo `tty` > /tmp/last_term_seen PLATFORM=`cat /etc/platform` # endless loop -# while : ; do +while : ; do if [ -f /tmp/ttybug ]; then rm /tmp/ttybug @@ -100,16 +100,16 @@ case ${opmode} in exit && exit && logout ;; 1) - /etc/rc.initial.setports + /etc/rc.initial.setports ; sleep 10 ; killall login ; exit ;; 2) - /etc/rc.initial.setlanip + /etc/rc.initial.setlanip ; sleep 10 ; killall login ; exit ;; 3) /etc/rc.initial.password ;; 4) - /etc/rc.initial.defaults + /etc/rc.initial.defaults ; sleep 10 ; killall login ; exit ;; 5) /etc/rc.initial.reboot @@ -127,41 +127,41 @@ case ${opmode} in /usr/local/sbin/pftop ;; 10) - /usr/sbin/tcpdump -n -e -ttt -i pflog0 - ;; + /usr/sbin/tcpdump -n -e -ttt -i pflog0 + ;; 11) - /etc/rc.restart_webgui - ;; + /etc/rc.restart_webgui + ;; 12) - /usr/local/sbin/pfSsh.php - ;; + /usr/local/sbin/pfSsh.php + ;; 13) - php -f /etc/rc.initial_firmware_update - ;; + php -f /etc/rc.initial_firmware_update + ;; 14) - /etc/rc.banner - ;; + /etc/rc.banner + ;; 98) - if [ ! -f /tmp/config_moved ]; then - /etc/rc.initial.store_config_to_removable_device - fi - ;; + if [ ! -f /tmp/config_moved ]; then + /etc/rc.initial.store_config_to_removable_device + fi + ;; 99) - if [ -e /dev/ukbd0 ]; then - env TERM=cons25 /scripts/lua_installer - else - /scripts/lua_installer - fi - ;; + if [ -e /dev/ukbd0 ]; then + env TERM=cons25 /scripts/lua_installer + else + /scripts/lua_installer + fi + ;; 100) - if grep "$WORD" "$CONFIG" - then - links "https://localhost" - else - links "http://localhost" - fi - ;; + if grep "$WORD" "$CONFIG" + then + links "https://localhost" + else + links "http://localhost" + fi + ;; esac -#done +done |