#!/bin/bash ENABLED=yes [[ ${ENABLED} == "yes" ]] || exit 0 DEBUGMODE=no . /usr/lib/ublinux/functions . /usr/lib/ublinux/default debug_mode "$0" "$@" # sysctl variables [ -f /etc/sysctl.conf ] && sysctl -p /etc/sysctl.conf [ -f /etc/sysctl.d/ublinux.conf ] && sysctl -p /etc/sysctl.d/ublinux.conf # If Linux installed on n[t]fs we have to omit killing rootfilesystem mounter when system halt ps -A | grep -E 'ntfsmount|rpciod|nfsiod|httpfs|curlftpfs' | awk '{ print $1 }' >> /var/run/sendsigs.omit # Creating /etc/mtab #rm -f /etc/mtab #ln -sf /proc/mounts /etc/mtab [ -z "$KDEVARTMP" ] || mkdir -p "$KDEVARTMP" [ -d "$KDEVARTMP" ] && chmod 777 "$KDEVARTMP" [[ -d /memory/run ]] && cp -fr /memory/run/* /run/ && rm -rf /memory/run