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.
ublinux-init/ublinux/rc.post.d/01-system

26 lines
737 B

#!/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 | egrep '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