Changeset 3517c1f in freewrt for package/fwifupdown/files
- Timestamp:
- Apr 24, 2007, 6:39:34 PM (19 years ago)
- Children:
- c3b4033
- Parents:
- b03e8e3
- Location:
- package/fwifupdown/files
- Files:
-
- 2 edited
-
ifupdown.sh (modified) (1 diff)
-
main.sh (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/fwifupdown/files/ifupdown.sh
rb03e8e3 r3517c1f 43 43 44 44 eval IFUPDOWN_ENV="" $(cat /etc/conf.d/ifupdown | sed "s/#.*//g" ) \ 45 busybox $(basename $0) $@ 2>&- # | sed '/^run-parts:/d'45 busybox $(basename $0) $@ 2>&- # | sed '/^run-parts:/d' 46 46 47 47 # restore hook dirs -
package/fwifupdown/files/main.sh
rb03e8e3 r3517c1f 137 137 CFG_SYSLOG_OFF=0 138 138 CFG_BUSYBOX_COMPAT=0 139 CFG_START_PRINTING_OFF=0 140 CFG_STOP_PRINTING_OFF=0 139 CFG_PREUP_PRINTING_OFF=0 140 CFG_UP_PRINTING_OFF=0 141 CFG_DOWN_PRINTING_OFF=0 142 CFG_POSTDOWN_PRINTING_OFF=0 141 143 CFG_PREUP_IFUP_CHECK_OFF=0 142 CFG_UP_IFUP_CHECK_OFF=0143 144 CFG_DOWN_IFUP_CHECK_OFF=0 144 CFG_POSTDOWN_IFUP_CHECK_OFF=0145 145 146 146 if [ -f /etc/conf.d/ifupdown ]; then … … 181 181 case $SUBMODE in 182 182 if-pre-up) 183 config $CFG_ START_PRINTING_OFF || mstart183 config $CFG_PREUP_PRINTING_OFF || mstart 184 184 185 185 if ! config $CFG_PREUP_IFUP_CHECK_OFF && is_up 186 186 then 187 if ! config $CFG_ START_PRINTING_OFF187 if ! config $CFG_PREUP_PRINTING_OFF 188 188 then 189 189 mup … … 201 201 fi 202 202 203 if ! config $CFG_ START_PRINTING_OFF203 if ! config $CFG_PREUP_PRINTING_OFF 204 204 then 205 205 if [ "$METHOD" = "manual" ] … … 212 212 ;; 213 213 if-up) 214 if ! config $CFG_UP_IFUP_CHECK_OFF 215 then 216 if ! config $CFG_START_PRINTING_OFF 217 then 218 is_up 219 mstate $? 220 fi 214 if ! config $CFG_UP_PRINTING_OFF 215 then 216 is_up 217 mstate $? 221 218 fi 222 219 … … 234 231 ;; 235 232 if-down) 236 config $CFG_ STOP_PRINTING_OFF || mstop233 config $CFG_DOWN_PRINTING_OFF || mstop 237 234 238 235 if ! config $CFG_DOWN_IFUP_CHECK_OFF && ! is_up 239 236 then 240 if ! config $CFG_ STOP_PRINTING_OFF237 if ! config $CFG_DOWN_PRINTING_OFF 241 238 then 242 239 mdown … … 260 257 fi 261 258 262 if ! config $CFG_ STOP_PRINTING_OFF259 if ! config $CFG_DOWN_PRINTING_OFF 263 260 then 264 261 if [ "$METHOD" = "manual" ] … … 271 268 ;; 272 269 if-post-down) 273 if ! config $CFG_POSTDOWN_IFUP_CHECK_OFF 274 then 275 if ! config $CFG_STOP_PRINTING_OFF 276 then 277 ! is_up 278 mstate $? 279 fi 270 if ! config $CFG_POSTDOWN_PRINTING_OFF 271 then 272 ! is_up 273 mstate $? 280 274 fi 281 275
Note:
See TracChangeset
for help on using the changeset viewer.
