source: trunk/fwmod_custom @ 14892

Letzte Änderung dieser Datei seit 14892 war 14892, erstellt von er13 vor 2 Wochen

fix typo in previous commit

Dateigröße: 2.0 KB
Zeile 
1#!/bin/bash
2
3# Custom firmware modifications
4
5# Directories:
6#  ./firmware   - untared firmware
7#  ./filesystem - unpacked filesystem squashfs
8#  ./kernel - unpacked kernel & hidden kernel squashfs
9
10all() {
11    dummy=0
12}
13
14all_no_freetz() {
15    local freetz_base patches_scripts
16
17    freetz_base=$(dirname "$0")
18    patches_scripts="${freetz_base}/patches/scripts"
19
20    # source freetz-helper-functions and freetz .config
21    source "${freetz_base}/tools/freetz_functions"
22    source "${freetz_base}/tools/freetz_patch"
23    source "${freetz_base}/.config"
24
25    # run telefon daemon in in-house mode, needed for
26    # - /var/flash/calllog processing
27    # - telnet-on-/off phone codes support
28    # - automatic telnet start
29    source "${patches_scripts}/114-run_telefon_in_inhouse_mode.sh"
30
31    # restore telnet support, the user still needs to activate it via the phone code (#96*7*)
32    ln -sf ../../bin/busybox ./filesystem/usr/sbin/telnetd
33
34    # the following "mods" could (and should) be controlled used the Freetz menuconfig system
35    # i.e. enable the corresponding option in Freetz menuconfig system, otherwise the patches
36    # below won't do anything
37
38    # enforce urlader settings, useful on boxes with bootloader version >=1.3179 (7490) resp. >=1.3229 (7580)
39    source "${patches_scripts}/101-enforce_urlader-settings.sh"
40
41    # hardcode branding in rc.conf (an alternative to the enforce-urlader-settings patch above)
42    source "${patches_scripts}/101-enforce_branding_via_rc.conf.sh"
43
44    # restore debug.cfg support
45    source "${patches_scripts}/114-debug_cfg_support.sh"
46
47    # patch away / hide "vom Hersteller nicht unterstützte Änderungen"
48    source "${patches_scripts}/195-patch_webmenu_signed.sh"
49
50    # restore volume counter support, 7412 only
51    source "${patches_scripts}/241-restore_vol_counter.sh"
52
53    # add modfs boot-manager
54    source "${patches_scripts}/800-modfs_boot_manager.sh"
55}
56
57clean() {
58    dummy=0
59}
60
61case "$1" in
62    ""|all)
63        all
64        ;;
65    all_no_freetz)
66        all_no_freetz
67        ;;
68    clean)
69        clean
70        ;;
71    *)
72        echo "Usage: $0 {all|clean}" 1>&2
73        exit 1
74        ;;
75esac
76
77exit 0
Hinweis: Hilfe zum Repository-Browser finden Sie in TracBrowser.