Revision e173dd74
Added by Phil Davis over 10 years ago
etc/rc.initial | ||
---|---|---|
69 | 69 |
fi |
70 | 70 |
|
71 | 71 |
for i in /var/db/pfi/capable_*; do |
72 |
if [ -f $i -a ! -L /cf/conf ]; then
|
|
73 |
option98="98) Move configuration file to removable device" |
|
74 |
break |
|
75 |
fi
|
|
72 |
if [ -f $i -a ! -L /cf/conf ]; then
|
|
73 |
option98="98) Move configuration file to removable device"
|
|
74 |
break
|
|
75 |
fi
|
|
76 | 76 |
done |
77 | 77 |
|
78 | 78 |
if [ "$PLATFORM" = "cdrom" ]; then |
79 |
option99="99) Install ${product} to a hard drive, etc."
|
|
79 |
option99="99) Install ${product} to a hard drive, etc."
|
|
80 | 80 |
fi |
81 | 81 |
|
82 | 82 |
# display a cheap menu |
... | ... | |
103 | 103 |
# see what the user has chosen |
104 | 104 |
case ${opmode} in |
105 | 105 |
0) |
106 |
exit && exit && logout
|
|
107 |
;;
|
|
106 |
exit && exit && logout
|
|
107 |
;;
|
|
108 | 108 |
1) |
109 |
/etc/rc.initial.setports
|
|
110 |
;;
|
|
109 |
/etc/rc.initial.setports
|
|
110 |
;;
|
|
111 | 111 |
2) |
112 |
/etc/rc.initial.setlanip
|
|
113 |
;;
|
|
112 |
/etc/rc.initial.setlanip
|
|
113 |
;;
|
|
114 | 114 |
3) |
115 |
/etc/rc.initial.password
|
|
116 |
;;
|
|
115 |
/etc/rc.initial.password
|
|
116 |
;;
|
|
117 | 117 |
4) |
118 |
/etc/rc.initial.defaults
|
|
119 |
;;
|
|
118 |
/etc/rc.initial.defaults
|
|
119 |
;;
|
|
120 | 120 |
5) |
121 |
/etc/rc.initial.reboot
|
|
122 |
;;
|
|
121 |
/etc/rc.initial.reboot
|
|
122 |
;;
|
|
123 | 123 |
6) |
124 |
/etc/rc.initial.halt
|
|
125 |
;;
|
|
124 |
/etc/rc.initial.halt
|
|
125 |
;;
|
|
126 | 126 |
7) |
127 |
/etc/rc.initial.ping
|
|
128 |
;;
|
|
127 |
/etc/rc.initial.ping
|
|
128 |
;;
|
|
129 | 129 |
8) |
130 |
/bin/tcsh
|
|
131 |
;;
|
|
130 |
/bin/tcsh
|
|
131 |
;;
|
|
132 | 132 |
9) |
133 |
/usr/local/sbin/pftop
|
|
134 |
;;
|
|
133 |
/usr/local/sbin/pftop
|
|
134 |
;;
|
|
135 | 135 |
10) |
136 |
/usr/local/sbin/clog -f /var/log/filter.log
|
|
137 |
;;
|
|
136 |
/usr/local/sbin/clog -f /var/log/filter.log |
|
137 |
;; |
|
138 | 138 |
11 | 111) |
139 |
/etc/rc.restart_webgui
|
|
140 |
;;
|
|
139 |
/etc/rc.restart_webgui |
|
140 |
;; |
|
141 | 141 |
12) |
142 |
/usr/local/sbin/pfSsh.php
|
|
143 |
;;
|
|
144 |
13)
|
|
145 |
php -f /etc/rc.initial.firmware_update
|
|
146 |
;;
|
|
147 |
14)
|
|
148 |
php -f /etc/rc.initial.toggle_sshd
|
|
149 |
;;
|
|
142 |
/usr/local/sbin/pfSsh.php |
|
143 |
;; |
|
144 |
13) |
|
145 |
php -f /etc/rc.initial.firmware_update |
|
146 |
;; |
|
147 |
14) |
|
148 |
php -f /etc/rc.initial.toggle_sshd |
|
149 |
;;
|
|
150 | 150 |
15) |
151 |
/etc/rc.restore_config_backup
|
|
152 |
;;
|
|
151 |
/etc/rc.restore_config_backup |
|
152 |
;; |
|
153 | 153 |
16) |
154 |
/etc/rc.php-fpm_restart
|
|
155 |
;;
|
|
154 |
/etc/rc.php-fpm_restart |
|
155 |
;; |
|
156 | 156 |
98) |
157 |
if [ ! -f /tmp/config_moved ]; then
|
|
158 |
/etc/rc.initial.store_config_to_removable_device
|
|
159 |
fi
|
|
160 |
;;
|
|
157 |
if [ ! -f /tmp/config_moved ]; then |
|
158 |
/etc/rc.initial.store_config_to_removable_device |
|
159 |
fi |
|
160 |
;; |
|
161 | 161 |
99) |
162 |
if [ -e /dev/ukbd0 ]; then
|
|
163 |
env TERM=cons25 /scripts/lua_installer
|
|
164 |
else
|
|
165 |
/scripts/lua_installer
|
|
166 |
fi
|
|
167 |
;;
|
|
162 |
if [ -e /dev/ukbd0 ]; then |
|
163 |
env TERM=cons25 /scripts/lua_installer |
|
164 |
else |
|
165 |
/scripts/lua_installer |
|
166 |
fi |
|
167 |
;; |
|
168 | 168 |
100) |
169 |
if grep "$WORD" "$CONFIG"; then
|
|
170 |
links "https://localhost"
|
|
171 |
else
|
|
172 |
links "http://localhost"
|
|
173 |
fi
|
|
174 |
;;
|
|
169 |
if grep "$WORD" "$CONFIG"; then |
|
170 |
links "https://localhost" |
|
171 |
else |
|
172 |
links "http://localhost" |
|
173 |
fi |
|
174 |
;; |
|
175 | 175 |
"") |
176 |
kill $PPID ; exit
|
|
177 |
;;
|
|
176 |
kill $PPID ; exit |
|
177 |
;; |
|
178 | 178 |
esac |
179 | 179 |
|
180 | 180 |
done |
Also available in: Unified diff
Code style for etc files