mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-14 16:01:29 +00:00
21 lines
369 B
Bash
21 lines
369 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -Eeuo pipefail
|
|
trap - ERR
|
|
|
|
. /run/helpers.sh
|
|
|
|
# Stop openwrt
|
|
echo "****** Stop openwrt ******"
|
|
supervisorctl stop openwrt
|
|
|
|
# Do factory reset
|
|
echo "****** Do factory reset ******"
|
|
|
|
echo "Deleting all files in /storage ..."
|
|
ls /storage/
|
|
rm -f /storage/*
|
|
|
|
# Start openwrt again
|
|
echo "****** Start openwrt again ******"
|
|
supervisorctl start openwrt |