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