DOC_CONTENTS="
If this is a clean installation of wpa_supplicant, you
have to create a configuration file named
- ${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf
+ ${EROOT}/etc/wpa_supplicant/wpa_supplicant.conf
An example configuration file is available for reference in
- ${EROOT%/}/usr/share/doc/${PF}/
+ ${EROOT}/usr/share/doc/${PF}/
"
S="${WORKDIR}/${P}/${PN}"
pkg_postinst() {
readme.gentoo_print_elog
- if [[ -e "${EROOT%/}"/etc/wpa_supplicant.conf ]] ; then
+ if [[ -e "${EROOT}"/etc/wpa_supplicant.conf ]] ; then
echo
- ewarn "WARNING: your old configuration file ${EROOT%/}/etc/wpa_supplicant.conf"
- ewarn "needs to be moved to ${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf"
+ ewarn "WARNING: your old configuration file ${EROOT}/etc/wpa_supplicant.conf"
+ ewarn "needs to be moved to ${EROOT}/etc/wpa_supplicant/wpa_supplicant.conf"
fi
if use bindist; then
# Mea culpa, feel free to remove that after some time --mgorny.
local fn
for fn in wpa_supplicant{,@wlan0}.service; do
- if [[ -e "${EROOT%/}"/etc/systemd/system/network.target.wants/${fn} ]]
+ if [[ -e "${EROOT}"/etc/systemd/system/network.target.wants/${fn} ]]
then
ebegin "Moving ${fn} to multi-user.target"
- mv "${EROOT%/}"/etc/systemd/system/network.target.wants/${fn} \
- "${EROOT%/}"/etc/systemd/system/multi-user.target.wants/ || die
+ mv "${EROOT}"/etc/systemd/system/network.target.wants/${fn} \
+ "${EROOT}"/etc/systemd/system/multi-user.target.wants/ || die
eend ${?} \
"Please try to re-enable ${fn}"
fi
DOC_CONTENTS="
If this is a clean installation of wpa_supplicant, you
have to create a configuration file named
- ${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf
+ ${EROOT}/etc/wpa_supplicant/wpa_supplicant.conf
An example configuration file is available for reference in
- ${EROOT%/}/usr/share/doc/${PF}/
+ ${EROOT}/usr/share/doc/${PF}/
"
S="${WORKDIR}/${P}/${PN}"
pkg_postinst() {
readme.gentoo_print_elog
- if [[ -e "${EROOT%/}"/etc/wpa_supplicant.conf ]] ; then
+ if [[ -e "${EROOT}"/etc/wpa_supplicant.conf ]] ; then
echo
- ewarn "WARNING: your old configuration file ${EROOT%/}/etc/wpa_supplicant.conf"
- ewarn "needs to be moved to ${EROOT%/}/etc/wpa_supplicant/wpa_supplicant.conf"
+ ewarn "WARNING: your old configuration file ${EROOT}/etc/wpa_supplicant.conf"
+ ewarn "needs to be moved to ${EROOT}/etc/wpa_supplicant/wpa_supplicant.conf"
fi
if use bindist; then
# Mea culpa, feel free to remove that after some time --mgorny.
local fn
for fn in wpa_supplicant{,@wlan0}.service; do
- if [[ -e "${EROOT%/}"/etc/systemd/system/network.target.wants/${fn} ]]
+ if [[ -e "${EROOT}"/etc/systemd/system/network.target.wants/${fn} ]]
then
ebegin "Moving ${fn} to multi-user.target"
- mv "${EROOT%/}"/etc/systemd/system/network.target.wants/${fn} \
- "${EROOT%/}"/etc/systemd/system/multi-user.target.wants/ || die
+ mv "${EROOT}"/etc/systemd/system/network.target.wants/${fn} \
+ "${EROOT}"/etc/systemd/system/multi-user.target.wants/ || die
eend ${?} \
"Please try to re-enable ${fn}"
fi