File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -287,19 +287,19 @@ resetcfg(){
287
287
# Resets all configuration in /etc/routertools.d
288
288
checksu || crit_error " You must be root to execute this function."
289
289
290
- if [[ -d /etc/routertools.d ]]; then
291
- echo " This will delete EVERYTHING under /etc/routertools.d"
292
- echo " Are you sure you want to do this?"
293
- echo " [Enter-> Continue] [Ctrl+C-> Cancel]"
294
-
295
- # "enter" detection
296
- read x
297
- unset x
298
-
299
- rm -r /etc/routertools.d
300
- fi
301
-
302
- echo " Initializing configuration..."
290
+ if [[ -d /etc/routertools.d ]]; then
291
+ echo " This will delete EVERYTHING under /etc/routertools.d"
292
+ echo " Are you sure you want to do this?"
293
+ echo " [Enter-> Continue] [Ctrl+C-> Cancel]"
294
+
295
+ # "enter" detection
296
+ read x
297
+ unset x
298
+
299
+ rm -r /etc/routertools.d
300
+ fi
301
+
302
+ echo " Initializing configuration..."
303
303
initfs
304
304
initfs_daemon_cfg
305
305
return $?
You can’t perform that action at this time.
0 commit comments