44 lines
976 B
Bash
Executable File
44 lines
976 B
Bash
Executable File
#!/bin/bash -e
|
|
# -*-mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
|
#
|
|
# rc.local
|
|
|
|
#
|
|
# This script is executed at the end of each multiuser runlevel.
|
|
# Make sure that the script will "exit 0" on success or any other
|
|
# value on error.
|
|
#
|
|
# In order to enable or disable this script just change the execution
|
|
# bits.
|
|
#
|
|
# By default this script does nothing.
|
|
|
|
# run this first
|
|
|
|
ROLE=local
|
|
MODE=all
|
|
CONN=all
|
|
BIN=/usr/local/sbin
|
|
|
|
. /usr/local/etc/local.d/local.bash || exit 1
|
|
|
|
local_all
|
|
|
|
local_manual_mask_services pdnsd ntpd tor polipo dnsmasq \
|
|
NetworkManager-wait-online apt-daily-upgrade apt-daily
|
|
|
|
# support the console
|
|
local_start_services gpm
|
|
|
|
# adjust to your taste here
|
|
|
|
[ -e /dev/autofs ] && rm /dev/autofs
|
|
if false && which systemctl 2>/dev/null >/dev/null ; then
|
|
systemctl | grep -q proc-sys-fs-binfmt_misc.automount && \
|
|
systemctl mask proc-sys-fs-binfmt_misc.automount
|
|
fi
|
|
|
|
exit 0
|
|
|
|
#? systemctl unmask -- -.mount run-msgcollector.mount run-user-1000.mount
|