|
Last change
on this file since 145c3b8 was b9492d5, checked in by Phil Sutter <n0-1@…>, 19 years ago |
|
merged from branches/common-adk 1310:1685
the following packages are not converted yet:
- alsa
- asterisk
- pmacct
- zaptel
- elinks
- libgd
- lua
- mypackage
- openser
- php*
- snort*
- tmsnc
additionally, freeradius doesn't compile.
happy fixing :P
git-svn-id: svn://www.freewrt.org/trunk/freewrt@1686 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100755
|
|
File size:
343 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| 3 | # restore patterns given in $@
|
|---|
| 4 | # in .config using defaults found
|
|---|
| 5 | # in Config.default.
|
|---|
| 6 |
|
|---|
| 7 | restore() { # (pattern)
|
|---|
| 8 | sed -i "s/^.*$1.*$//g" .config || return 1
|
|---|
| 9 | grep $1 Config.default >> .config
|
|---|
| 10 | return $?
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | for pattern in $@ ; do
|
|---|
| 14 | restore $pattern || echo "WARNING: internal restoring of defaults by pattern $pattern failed!"
|
|---|
| 15 | done
|
|---|
| 16 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.