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.
34 lines
1.1 KiB
34 lines
1.1 KiB
#!/usr/bin/bash
|
|
#
|
|
# Author: Dmitry Razumov <asmeron@ublinux.com>
|
|
# Copyright (c) 2021-2025 UBLinux <support@ublinux.com>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
#
|
|
|
|
ENABLED=no
|
|
[[ ${ENABLED} == "yes" ]] || { return 0 2>/dev/null && return 0 || exit 0; }
|
|
DEBUGMODE=no
|
|
|
|
unset ROOTFS; [[ -d /usr/lib/ublinux ]] || ROOTFS=.
|
|
SOURCE=${ROOTFS}/usr/lib/ublinux/functions; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null || exit 0
|
|
SOURCE=${ROOTFS}/usr/lib/ublinux/default; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null || exit 0
|
|
debug_mode "$0" "$@"
|
|
|
|
SYSCONF="${ROOTFS}${SYSCONF}"
|
|
SOURCE=${SYSCONF}/config; [ -f ${SOURCE} ] && . ${SOURCE} 2>/dev/null
|
|
|
|
# Free some space if pxe server are not using
|
|
#if [ -d /mnt/livemedia/ublinux ] ;then
|
|
# rm -f /boot/vmlinuz /boot/ublinux /boot/addon
|
|
# if LC_ALL=C chkconfig --list tftp 2>/dev/null | grep -q off ;then
|
|
# ln -sf /mnt/livemedia/ublinux/vmlinuz /boot
|
|
# ln -sf /mnt/livemedia/ublinux/ublinux /boot
|
|
# ln -sf /mnt/livemedia/ublinux/addon /boot
|
|
# else
|
|
# cp -pf /mnt/livemedia/ublinux/vmlinuz /boot
|
|
# cp -pf /mnt/livemedia/ublinux/ublinux /boot
|
|
# cp -pf /mnt/livemedia/ublinux/addon /boot
|
|
# fi
|
|
#fi
|