Skip to content

Commit

Permalink
[auto] ci: run beautysh
Browse files Browse the repository at this point in the history
  • Loading branch information
yagoplx authored and actions-user committed Jun 8, 2021
1 parent 20a0344 commit 108974d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions routertools
Original file line number Diff line number Diff line change
Expand Up @@ -287,19 +287,19 @@ resetcfg(){
# Resets all configuration in /etc/routertools.d
checksu || crit_error "You must be root to execute this function."

if [[ -d /etc/routertools.d ]]; then
echo "This will delete EVERYTHING under /etc/routertools.d"
echo "Are you sure you want to do this?"
echo "[Enter-> Continue] [Ctrl+C-> Cancel]"

# "enter" detection
read x
unset x

rm -r /etc/routertools.d
fi
echo "Initializing configuration..."
if [[ -d /etc/routertools.d ]]; then
echo "This will delete EVERYTHING under /etc/routertools.d"
echo "Are you sure you want to do this?"
echo "[Enter-> Continue] [Ctrl+C-> Cancel]"

# "enter" detection
read x
unset x

rm -r /etc/routertools.d
fi

echo "Initializing configuration..."
initfs
initfs_daemon_cfg
return $?
Expand Down

0 comments on commit 108974d

Please sign in to comment.