diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-06-23 03:13:28 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-06-23 03:13:28 -0500 |
commit | 6f1180f35fee220f92044e8f8a0a220ff308b295 (patch) | |
tree | b6899369633ce3051d62f9f4cd5d81217f158d35 /pcr/openrc-base/udev-postmount | |
parent | c2575baf97c888d66a7fef69a84b5718dbab28c9 (diff) |
{cronie,cryptsetup,dbus,device,dhcpcd,glibc,inetutils,lvm2,mdadm}-openrc-20150613-1: updating version
Diffstat (limited to 'pcr/openrc-base/udev-postmount')
-rw-r--r-- | pcr/openrc-base/udev-postmount | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/pcr/openrc-base/udev-postmount b/pcr/openrc-base/udev-postmount deleted file mode 100644 index e433736db..000000000 --- a/pcr/openrc-base/udev-postmount +++ /dev/null @@ -1,55 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() -{ - need localmount - keyword -vserver -lxc -} - -dir_writeable() -{ - touch "$1"/.test.$$ 2>/dev/null && rm "$1"/.test.$$ -} - -# store persistent-rules that got created while booting -# when / was still read-only -store_persistent_rules() -{ - # create /etc/udev/rules.d if it does not exist and /etc/udev is writable - [ -d /etc/udev/rules.d ] || \ - dir_writeable /etc/udev && \ - mkdir -p /etc/udev/rules.d - - # only continue if rules-directory is writable - dir_writeable /etc/udev/rules.d || return 0 - - local file dest - for file in /run/udev/tmp-rules--*; do - dest=${file##*tmp-rules--} - [ "$dest" = '*' ] && break - type=${dest##70-persistent-} - type=${type%%.rules} - ebegin "Saving udev persistent ${type} rules to /etc/udev/rules.d" - cat "$file" >> /etc/udev/rules.d/"$dest" && rm -f "$file" - eend $? "Failed moving persistent rules!" - done -} - -start() -{ - # check if this system uses udev - [ -d /run/udev ] || return 0 - - # store persistent-rules that got created while booting - # when / was still read-only - store_persistent_rules -} - -stop() -{ - return 0 -} - -# vim:ts=4 |