write_cd_rules revision 8b5651bb009bf892b3a5537c5f36b8891f238aa4
2N/A# This script is run if an optical drive lacks a rule for persistent naming. 2N/A# It adds symlinks for optical drives based on the device class determined 2N/A# by cdrom_id and used ID_PATH to identify the device. 2N/A# (C) 2006 Marco d'Itri <md@Linux.IT> 2N/A# This program is free software: you can redistribute it and/or modify 2N/A# it under the terms of the GNU General Public License as published by 2N/A# the Free Software Foundation, either version 2 of the License, or 2N/A# (at your option) any later version. 2N/A# This program is distributed in the hope that it will be useful, 2N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A# GNU General Public License for more details. 2N/A# You should have received a copy of the GNU General Public License 2N/A# debug, if UDEV_LOG=<debug> 2N/A echo "# This file was automatically generated by the $0" 2N/A echo "# You can modify it, as long as you keep each rule on a single" 2N/A echo "# line, and set the \$GENERATED variable." 2N/A echo "Missing \$DEVPATH." >&
2 2N/A echo "$DEVPATH not supported by path_id. by-id may work." >&
2 2N/A echo "$DEVPATH not supported by ata_id. by-path may work." >&
2 2N/A echo "Invalid argument (must be either by-path or by-id)." >&
2 2N/A# Prevent concurrent processes from modifying the file at the same time. 2N/A# Check if the rules file is writeable.