source: freewrt/scripts/restore-defaultconf.sh@ de3cb1f5

Last change on this file since de3cb1f5 was f35ce74, checked in by Phil Sutter <n0-1@…>, 19 years ago

Finished the "allmodconfig" target. As `conf' is quite stupid, with flag
"-m" it selects just everything, also every Busybox feature. This leads
to at least one broken package, so I wrote a little script replacing
config symbols by pattern, taking the default from .defconfig (which I
updated using `rm .config; make menuconfig (just save); mv .config
.defconfig`).
Also corrected a mistake regarding Fuse (sneaked back in with the last
update).

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1204 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 335 bytes
Line 
1#!/bin/bash
2#
3# restore patterns given in $@
4# in .config using defaults found
5# in .defconfig.
6
7restore() { # (pattern)
8 sed -i "s/^.*$1.*$//g" .config || return 1
9 grep $1 .defconfig >> .config
10 return $?
11}
12
13for pattern in $@ ; do
14 restore $pattern || echo "WARNING: internal restoring of defaults by pattern $pattern failed!"
15done
16
Note: See TracBrowser for help on using the repository browser.