Merge branch 'thingos' into dev

This commit is contained in:
Calin Crisan 2018-11-18 19:56:31 +02:00
commit 9f35f8f053
4 changed files with 12 additions and 11 deletions

View File

@ -209,4 +209,4 @@ rm -f $TARGET/etc/init.d/S99motion
# other unwanted dirs
rm -rf $TARGET/data/*
rm -rf $TARGET/run

View File

@ -1 +0,0 @@
tmp

View File

@ -15,6 +15,12 @@ if [ -x $BOARD_DIR/postscript.sh ]; then
$BOARD_DIR/postscript.sh
fi
# cleanups
$COMMON_DIR/cleanups.sh
if [ -x $BOARD_DIR/cleanups.sh ]; then
$BOARD_DIR/cleanups.sh
fi
# transform /var contents as needed
rm -rf $TARGET/var/cache
rm -rf $TARGET/var/lib
@ -31,12 +37,7 @@ ln -s /data/log $TARGET/var/log
ln -s /tmp $TARGET/var/run
ln -s /tmp $TARGET/var/spool
ln -s /tmp $TARGET/var/tmp
# cleanups
$COMMON_DIR/cleanups.sh
if [ -x $BOARD_DIR/cleanups.sh ]; then
$BOARD_DIR/cleanups.sh
fi
ln -s /tmp $TARGET/run
# board-specific os.conf
if [ -r $BOARD_DIR/os.conf ]; then

View File

@ -43,9 +43,10 @@ SKELETON_INIT_COMMON_BIN_SH = $(call qstrip,$(BR2_SYSTEM_BIN_SH))
ifneq ($(SKELETON_INIT_COMMON_HOSTNAME),)
define SKELETON_INIT_COMMON_SET_HOSTNAME
mkdir -p $(TARGET_DIR)/etc
echo "$(SKELETON_INIT_COMMON_HOSTNAME)" > $(TARGET_DIR)/etc/hostname
test -f $(TARGET_DIR)/etc/hosts && $(SED) \
'$$a \127.0.1.1\t$(SKELETON_INIT_COMMON_HOSTNAME)' \
test -f $(TARGET_DIR)/etc/hostname && \
echo "$(SKELETON_INIT_COMMON_HOSTNAME)" > $(TARGET_DIR)/etc/hostname || true
test -f $(TARGET_DIR)/etc/hosts && \
$(SED) '$$a \127.0.1.1\t$(SKELETON_INIT_COMMON_HOSTNAME)' \
-e '/^127.0.1.1/d' $(TARGET_DIR)/etc/hosts || true
endef
SKELETON_INIT_COMMON_TARGET_FINALIZE_HOOKS += SKELETON_INIT_COMMON_SET_HOSTNAME