Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenWrt-Barrier-breaker
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nounous-archives
OpenWrt-Barrier-breaker
Commits
de005a00
Commit
de005a00
authored
10 years ago
by
Gabriel Detraz
Browse files
Options
Downloads
Patches
Plain Diff
Efface tout sauf les celfs ssh lors d'un sys upgrade.
parent
237202bc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/lib/upgrade/erase_all.sh
+16
-0
16 additions, 0 deletions
files/lib/upgrade/erase_all.sh
with
16 additions
and
0 deletions
files/lib/upgrade/erase_all.sh
0 → 100644
+
16
−
0
View file @
de005a00
#!/bin/sh
# Customisation Cr@ns : on ne garde que les clefs ssh lors d'un sysupgrade
# le reste de la configuration est géré dans l'image ou via l'initscript
# de first boot (hostname via dhcp par ex)
# Surcharge de la fonction add_uci_conffiles de /sbin/sysupgrade
add_uci_conffiles
()
{
local
file
=
"
$1
"
(
cat
<<
EOF
/etc/dropbear/dropbear_rsa_host_key
/etc/dropbear/dropbear_dss_host_key
EOF
)
>
$file
return
0
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment