Remove vim settings.
This commit is contained in:
		| @@ -14,7 +14,8 @@ else | |||||||
| 	utc="Local Time" | 	utc="Local Time" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	# BSD adjkerntz needs to be able to write to /etc | 	# BSD adjkerntz needs to be able to write to /etc | ||||||
| 	if [ "${clock}" = "UTC" -a -e /etc/wall_cmos_clock ] || | 	if [ "${clock}" = "UTC" -a -e /etc/wall_cmos_clock ] || | ||||||
| 	   [ "${clock}" != "UTC" -a ! -e /etc/wall_cmos_clock ]; then | 	   [ "${clock}" != "UTC" -a ! -e /etc/wall_cmos_clock ]; then | ||||||
| @@ -22,7 +23,8 @@ depend() { | |||||||
| 	fi | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| start() { | start() | ||||||
|  | {	 | ||||||
| 	ebegin "Starting the System Clock Adjuster [${utc}]" | 	ebegin "Starting the System Clock Adjuster [${utc}]" | ||||||
| 	if [ "${clock}" != "UTC" ]; then | 	if [ "${clock}" != "UTC" ]; then | ||||||
| 		echo >/etc/wall_cmos_clock | 		echo >/etc/wall_cmos_clock | ||||||
| @@ -34,13 +36,15 @@ start() { | |||||||
| 	eend $? | 	eend $? | ||||||
| } | } | ||||||
|  |  | ||||||
| save() { | save() | ||||||
|  | { | ||||||
| 	ebegin "Setting hardware clock using the system clock [${utc}]" | 	ebegin "Setting hardware clock using the system clock [${utc}]" | ||||||
| 	adjkerntz -a | 	adjkerntz -a | ||||||
| 	eend $? | 	eend $? | ||||||
| } | } | ||||||
|  |  | ||||||
| stop() { | stop() | ||||||
|  | { | ||||||
|     # Don't tweak the hardware clock on LiveCD halt. |     # Don't tweak the hardware clock on LiveCD halt. | ||||||
| 	if yesno "${clock_systohc:-${CLOCK_SYSTOHC}}"; then | 	if yesno "${clock_systohc:-${CLOCK_SYSTOHC}}"; then | ||||||
| 	   [ -z "${CDBOOT}" ] && save | 	   [ -z "${CDBOOT}" ] && save | ||||||
| @@ -54,5 +58,3 @@ stop() { | |||||||
| 		eend 0 | 		eend 0 | ||||||
| 	fi | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -7,7 +7,8 @@ command_args="${avahi_dnsconfd_args} -D" | |||||||
| pidfile=@VARBASE@/run/avahi-dnsconfd.pid | pidfile=@VARBASE@/run/avahi-dnsconfd.pid | ||||||
| name="Avahi DNS Configuration Daemon" | name="Avahi DNS Configuration Daemon" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	use dns | 	use dns | ||||||
| 	need localmount dbus | 	need localmount dbus | ||||||
| 	after bootmisc | 	after bootmisc | ||||||
|   | |||||||
| @@ -7,7 +7,8 @@ command_args="${avahid_args} -D" | |||||||
| pidfile=@VARBASE@/run/avahi-daemon/pid | pidfile=@VARBASE@/run/avahi-daemon/pid | ||||||
| name="Avahi Service Advertisement Daemon" | name="Avahi Service Advertisement Daemon" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	use dns | 	use dns | ||||||
| 	need localmount dbus | 	need localmount dbus | ||||||
| 	after bootmisc | 	after bootmisc | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ pidfile=@VARBASE@/run/dbus/dbus.pid | |||||||
| command_args="${dbusd_args---system}" | command_args="${dbusd_args---system}" | ||||||
| name="Message Bus Daemon" | name="Message Bus Daemon" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	need localmount net | 	need localmount net | ||||||
| 	after bootmisc | 	after bootmisc | ||||||
| } | } | ||||||
|  |  | ||||||
| start_pre() { | start_pre() | ||||||
|  | { | ||||||
|     mkdir -p $(dirname $pidfile) |     mkdir -p $(dirname $pidfile) | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -9,16 +9,16 @@ required_files=/etc/dnsmasq.conf | |||||||
|  |  | ||||||
| extra_started_commands="reload" | extra_started_commands="reload" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | {	 | ||||||
| 	provide dns | 	provide dns | ||||||
| 	need localmount net | 	need localmount net | ||||||
| 	after bootmisc | 	after bootmisc | ||||||
| } | } | ||||||
|  |  | ||||||
| reload() { | reload() | ||||||
|  | { | ||||||
| 	ebegin "Reloading ${SVCNAME}" | 	ebegin "Reloading ${SVCNAME}" | ||||||
| 	start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" | 	start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" | ||||||
| 	eend $? | 	eend $? | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -7,8 +7,7 @@ pidfile=@VARBASE@/run/hald/hald.pid | |||||||
| command_args="${hald_args}" | command_args="${hald_args}" | ||||||
| name="Hardware Abstraction Layer Daemon" | name="Hardware Abstraction Layer Daemon" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	need dbus | 	need dbus | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -11,13 +11,15 @@ extra_started_commands="reload" | |||||||
| namedb=/etc/namedb | namedb=/etc/namedb | ||||||
| named_uid=${named_uid:-bind} | named_uid=${named_uid:-bind} | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	provide dns | 	provide dns | ||||||
| 	need localmount | 	need localmount | ||||||
| 	after bootmisc | 	after bootmisc | ||||||
| } | } | ||||||
|  |  | ||||||
| start_pre() { | start_pre() | ||||||
|  | { | ||||||
| 	if [ -n "${named_chroot}" ]; then | 	if [ -n "${named_chroot}" ]; then | ||||||
| 		# Create (or update) the chroot directory structure | 		# Create (or update) the chroot directory structure | ||||||
| 		if [ -r /etc/mtree/BIND.chroot.dist ]; then | 		if [ -r /etc/mtree/BIND.chroot.dist ]; then | ||||||
| @@ -84,14 +86,14 @@ start_pre() { | |||||||
| 	fi | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| reload() { | reload() | ||||||
|  | { | ||||||
| 	rndc reload | 	rndc reload | ||||||
| } | } | ||||||
|  |  | ||||||
| stop_post() { | stop_post() | ||||||
|  | { | ||||||
| 	if [ -n "${named_chroot}" -a -c "${named_chroot}"/dev/null ]; then | 	if [ -n "${named_chroot}" -a -c "${named_chroot}"/dev/null ]; then | ||||||
| 		umount "${named_chroot}"/dev 2>/dev/null || true | 		umount "${named_chroot}"/dev 2>/dev/null || true | ||||||
| 	fi | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -10,13 +10,15 @@ pidfile=/var/run/ntpd.pid | |||||||
| command_args="${ntpd_args} -c ${ntpd_config} -f ${ntpd_drift} -p ${pidfile}" | command_args="${ntpd_args} -c ${ntpd_config} -f ${ntpd_drift} -p ${pidfile}" | ||||||
| name="Network Time Protocol Daemon" | name="Network Time Protocol Daemon" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	use dns | 	use dns | ||||||
| 	need localmount | 	need localmount | ||||||
| 	after bootmisc ntp-client | 	after bootmisc ntp-client | ||||||
| } | } | ||||||
|  |  | ||||||
| start_pre() { | start_pre() | ||||||
|  | { | ||||||
| 	if [ ! -r "${ntpd_config}" ]; then | 	if [ ! -r "${ntpd_config}" ]; then | ||||||
| 		eerror "${ntpd_config} is not readable" | 		eerror "${ntpd_config} is not readable" | ||||||
| 		return 1 | 		return 1 | ||||||
| @@ -36,5 +38,3 @@ start_pre() { | |||||||
| 		command_args="${command_args} -u ntpd:ntpd -i ${ntpd_chroot}" | 		command_args="${command_args} -u ntpd:ntpd -i ${ntpd_chroot}" | ||||||
| 	fi | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -28,12 +28,14 @@ if yesno "${openvpn_client}"; then | |||||||
| 	start_inactive="YES" | 	start_inactive="YES" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	need net | 	need net | ||||||
| 	use dns | 	use dns | ||||||
| } | } | ||||||
|  |  | ||||||
| start_pre() { | start_pre() | ||||||
|  | { | ||||||
| 	# Linux has good dynamic tun/tap creation | 	# Linux has good dynamic tun/tap creation | ||||||
| 	if [ "${RC_UNAME}" = "Linux" ]; then | 	if [ "${RC_UNAME}" = "Linux" ]; then | ||||||
| 		if [ ! -e /dev/net/tun ]; then | 		if [ ! -e /dev/net/tun ]; then | ||||||
| @@ -62,5 +64,3 @@ start_pre() { | |||||||
| 		command_args="${command_args} --cd ${openvpn_dir}" | 		command_args="${command_args} --cd ${openvpn_dir}" | ||||||
| 	fi | 	fi | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -7,8 +7,7 @@ pidfile=@VARBASE@/run/polkitd/polkitd.pid | |||||||
| command_args="${polkitd_args}" | command_args="${polkitd_args}" | ||||||
| name="PolicyKit Daemon" | name="PolicyKit Daemon" | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	need dbus | 	need dbus | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
| @@ -8,12 +8,14 @@ pidfile=@VARBASE@/run/sshd.pid | |||||||
| required_files=/etc/ssh/sshd_config | required_files=/etc/ssh/sshd_config | ||||||
| required_dirs=@VARBASE@/empty | required_dirs=@VARBASE@/empty | ||||||
|  |  | ||||||
| depend() { | depend() | ||||||
|  | { | ||||||
| 	use logger dns | 	use logger dns | ||||||
| 	need net | 	need net | ||||||
| } | } | ||||||
|  |  | ||||||
| start_pre() { | start_pre() | ||||||
|  | { | ||||||
| 	if [ ! -e /etc/ssh/ssh_host_key ]; then | 	if [ ! -e /etc/ssh/ssh_host_key ]; then | ||||||
| 		ebegin "Generating Hostkey" | 		ebegin "Generating Hostkey" | ||||||
| 		ssh-keygen -t rsa1 -b 1024 -f /etc/ssh/ssh_host_key -N '' | 		ssh-keygen -t rsa1 -b 1024 -f /etc/ssh/ssh_host_key -N '' | ||||||
| @@ -32,5 +34,3 @@ start_pre() { | |||||||
|  |  | ||||||
| 	${command} -t	 | 	${command} -t	 | ||||||
| } | } | ||||||
|  |  | ||||||
| # vim: set ts=4 : |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user