Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 142239 Details for
Bug 208245
sys-fs/udev scripts for OpenRC
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
udev-stop.sh
udev-stop.sh (text/plain), 2.04 KB, created by
Roy Marples
on 2008-01-30 22:51:38 UTC
(
hide
)
Description:
udev-stop.sh
Filename:
MIME Type:
Creator:
Roy Marples
Created:
2008-01-30 22:51:38 UTC
Size:
2.04 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > > >/lib64/udev/move_tmp_persistent_rules.sh > >rc_device_tarball=${rc_device_tarball:-${RC_DEVICE_TARBALL:-NO}} >if [ -e /dev/.devfsd ] || [ ! -e /dev/.udev ] || [ ! -z "${CDBOOT}" ] || \ > ! yesno "${rc_device_tarball}" || \ > ! touch /lib64/udev/state/devices.tar.bz2 2>/dev/null >then > exit 0 >fi > >ebegin "Saving device nodes" ># Handle our temp files >save_tmp_base=/tmp/udev.savedevices."$$" >devices_udev="${save_tmp_base}"/devices.udev >devices_real="${save_tmp_base}"/devices.real >devices_totar="${save_tmp_base}"/devices.totar >device_tarball="${save_tmp_base}"/devices > >rm -rf "${save_tmp_base}" >mkdir "${save_tmp_base}" >touch "${devices_udev}" "${devices_real}" \ >"${devices_totar}" "${device_tarball}" > >if [ -f "${devices_udev}" -a -f "${devices_real}" -a \ > -f "${devices_totar}" -a -f "${device_tarball}" ] >then > cd /dev > # Find all devices > find . -xdev -type b -or -type c -or -type l | \ > cut -d/ -f2- >"${devices_real}" > > # Figure out what udev created > udevinfo --export-db | sed -ne 's,^[SN]: \(.*\),\1,p' >"${devices_udev}" > # These ones we also do not want in there > for x in MAKEDEV core fd initctl pts shm stderr stdin stdout root; do > echo "${x}" >> "${devices_udev}" > done > if [ -d /lib64/udev/devices ]; then > cd /lib64/udev/devices > find . -xdev -type b -or -type c -or -type l | \ > cut -d/ -f2- >> "${devices_udev}" > fi > > cd /dev > fgrep -x -v -f "${devices_udev}" < "${devices_real}" | \ > grep -v ^\\.udev > "${devices_totar}" > > # Now only tarball those not created by udev if we have any > if [ -s "${devices_totar}" ]; then > # we dont want to descend into mounted filesystems (e.g. devpts) > # looking up username may involve NIS/network > # and net may be down > tar --one-file-system --numeric-owner \ > -jcpf "${device_tarball}" -T "${devices_totar}" > mv -f "${device_tarball}" /lib64/udev/state/devices.tar.bz2 > else > rm -f /lib64/udev/state/devices.tar.bz2 > fi > eend 0 >else > eend 1 "Could not create temporary files!" >fi > >rm -rf "${save_tmp_base}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208245
:
142238
| 142239