You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
620 B
37 lines
620 B
# set up livecd browser redirection page
|
|
|
|
ifdef BUILDDIR
|
|
|
|
include $(BUILDDIR)/distcfg.mk
|
|
|
|
ifndef HOMEPAGE
|
|
HOMEPAGE = http://oskometa.ru/
|
|
endif
|
|
|
|
ifndef HOMENAME
|
|
HOMENAME = KOMETA
|
|
endif
|
|
|
|
ifndef HOMEWAIT
|
|
HOMEWAIT = 3
|
|
endif
|
|
|
|
INDEXHTML := $(BUILDDIR)/stage1/files/index.html
|
|
|
|
all: debug
|
|
@if [ -s "$(INDEXHTML)" ]; then \
|
|
sed -i \
|
|
-e 's,@homepage@,$(HOMEPAGE),' \
|
|
-e 's,@homename@,$(HOMENAME),' \
|
|
-e 's,@homewait@,$(HOMEWAIT),' \
|
|
$(INDEXHTML); \
|
|
fi
|
|
|
|
debug:
|
|
@if [ -n "$(DEBUG)" ]; then \
|
|
echo "** HOMEPAGE: $(HOMEPAGE)"; \
|
|
echo "** HOMENAME: $(HOMENAME)"; \
|
|
echo "** HOMEWAIT: $(HOMEWAIT)"; \
|
|
fi
|
|
|
|
endif
|
|
|