3d649db656
There are three more variables to adjust the redirect page: HOMEPAGE, HOMENAME and HOMEWAIT; e.g. live-webkiosk is now quite a bit more whitelabel.
38 lines
628 B
Makefile
38 lines
628 B
Makefile
# set up livecd browser redirection page
|
|
|
|
ifdef BUILDDIR
|
|
|
|
include $(BUILDDIR)/distcfg.mk
|
|
|
|
ifndef HOMEPAGE
|
|
HOMEPAGE = http://www.altlinux.org/
|
|
endif
|
|
|
|
ifndef HOMENAME
|
|
HOMENAME = ALT Linux
|
|
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
|