5 @echo
"" >>rom
/etc
/motd
6 @echo
"Tomato v"`cat ../shared/tomato_version`"" >>rom
/etc
/motd
12 mkdir
-p
$(INSTALLDIR
)
13 ( tar --exclude
=.svn
--exclude
=*.bak
-cpf
- rom
) |
( cd
$(INSTALLDIR
) && tar -xpf
- )
15 # remove comments, compress whitespace
16 sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom
/etc
/services
> $(INSTALLDIR
)/rom
/etc
/services
17 sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom
/etc
/protocols
> $(INSTALLDIR
)/rom
/etc
/protocols
19 ifeq ($(TCONFIG_HTTPS
),y
)
20 sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom
/etc
/openssl.cnf
> $(INSTALLDIR
)/rom
/etc
/openssl.cnf
22 rm -f
$(INSTALLDIR
)/rom
/etc
/openssl.cnf
25 ifneq ($(TCONFIG_DNSSEC
),y
)
26 rm -f
$(INSTALLDIR
)/rom
/etc
/trust-anchors.conf
29 ifneq ($(TCONFIG_DNSCRYPT
),y
)
30 rm -f
$(INSTALLDIR
)/rom
/etc
/dnscrypt-resolvers.csv
32 -wget https
://raw.githubusercontent.com
/jedisct1
/dnscrypt-proxy
/master
/dnscrypt-resolvers.csv
-O
$(INSTALLDIR
)/rom
/etc
/dnscrypt-resolvers.csv