-
Notifications
You must be signed in to change notification settings - Fork 1
/
base-min.lua.m4
107 lines (91 loc) · 3.7 KB
/
base-min.lua.m4
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
include(utils.m4)dnl
include(repository.m4)dnl
list_script('base-fix.lua')
list_script('base-conditional.lua')
-- Kernel
Package("kernel", { reboot = "delayed" })
Package("kmod-mac80211", { reboot = "delayed" })
forInstallCritical(kmod,file2args(kmod.list))
if board == "mox" then
forInstallCritical(kmod,file2args(kmod-mox.list))
Install("mox-support", { critical = true })
Install("zram-swap", { priority = 40 })
elseif board == "omnia" then
forInstallCritical(kmod,file2args(kmod-omnia.list))
Install("omnia-support", { critical = true })
elseif board == "turris1x" then
forInstallCritical(kmod,file2args(kmod-turris1x.list))
Install("turris1x-support", { critical = true })
end
Install("fstools", { critical = true })
-- Critical minimum
Install("base-files", "busybox", "procd", "ubus", "uci", { critical = true })
Install("netifd", "firewall4", "dns-resolver", { critical = true})
-- OpenWrt minimum
Install("ebtables", "dnsmasq-full", "odhcpd", "odhcp6c", { priority = 40 })
Install("urandom-seed", { priority = 40 })
-- Turris minimum
Install("turris-defaults", { priority = 40 })
Install("cronie", { priority = 40 })
Install("syslog-ng", "logrotate", { priority = 40 })
Install("knot-resolver", { priority = 40 })
if board == "turris1x" then
Install("unbound", "unbound-anchor", { priority = 40 })
Install("turris1x-btrfs", { priority = 40 }) -- Currently only SD card root is supported
end
-- Certificates
Install("dnssec-rootkey", "cznic-repo-keys", { critical = true })
-- Note: We don't ensure safety of these CAs
Install("ca-certificates", { priority = 40 })
-- Network protocols
Install("ppp", "ppp-mod-pppoe", { priority = 40 })
Install("ds-lite", "6in4", "6rd", { priority = 40 })
_FEATURE_GUARD_
-- Network tools
Install("ip-full", "tc", "genl", "ip-bridge", "ss", "nstat", "devlink", "rdma", { priority = 40 })
Install("iputils-ping", "iputils-tracepath", { priority = 40 })
Install("nftables-json", "xtables-nft", "conntrack", { priority = 40 })
Install("bind-client", "bind-dig", { priority = 40 })
Install("umdns", { priority = 40 })
-- Admin utilities
Install("shadow", "shadow-utils", "uboot-envtools", "i2c-tools", { priority = 40 })
Install("openssh-server", "openssh-sftp-server", "openssh-moduli", { priority = 40 })
Uninstall("dropbear", { priority = 40 })
Install("pciutils", "usbutils", "lsof", "btrfs-progs", { priority = 40 })
Install("lm-sensors", { priority = 40 })
if board == "turris1x" or board == "omnia" then
Install("haveged", { priority = 40 })
end
-- Turris utility
Install("turris-version", "start-indicator", { priority = 40 })
Install("turris-utils", "user-notify", "watchdog_adjust", { priority = 40 })
Install("turris-diagnostics", { priority = 40 })
Install("turris-diagnostics-web", { priority = 40 })
Install("rainbow", { priority = 40 })
if board == "mox" then
Install("mox-otp", { priority = 40 })
elseif board == "omnia" then
Install("libatsha204", { priority = 40 })
elseif board == "turris1x" then
Install("libatsha204", "update_mac", { priority = 40 })
end
if board ~= "turris1x" then
Install("schnapps", { priority = 40 })
Install("turris-snapshots-web", { priority = 40 })
end
-- Wifi
Install("hostapd-common", "wireless-tools", "wpad-openssl", "iw", "iwinfo", { priority = 40 })
if board == "mox" then
Install("kmod-ath10k-ct", { priority = 40 })
Install("mwifiex-sdio-firmware", "ath10k-firmware-qca988x-ct", { priority = 40 })
else
Install("ath10k-firmware-qca988x", { priority = 40 })
end
-- Install timezone information (required for local time to work)
for _, zone in pairs({
"core", "atlantic", "asia", "africa", "australia-nz", "europe",
"northamerica", "india", "pacific", "poles", "simple", "southamerica"
}) do
Install("zoneinfo-" .. zone, { priority = 40 })
end
_END_FEATURE_GUARD_