wok rev 20305
pppd: into dialout group
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 06 10:39:28 2018 +0200 (2018-05-06) |
parents | 0bbf3f773324 |
children | 46f4f0519187 |
files | ppp/receipt ppp/stuff/ppp.cgi |
line diff
1.1 --- a/ppp/receipt Sat May 05 17:00:11 2018 +0200 1.2 +++ b/ppp/receipt Sun May 06 10:39:28 2018 +0200 1.3 @@ -102,4 +102,7 @@ 1.4 post_install() 1.5 { 1.6 rm -f $1/var/cache/tazpanel/header.* 2>/dev/null || true 1.7 + chroot "$1/" chgrp dialout /usr/sbin/pppd 1.8 + chmod 4750 $1/usr/sbin/pppd 1.9 + echo " ADD yourself to group dialout to use pppd: addgroup tux dialout" 1.10 }
2.1 --- a/ppp/stuff/ppp.cgi Sat May 05 17:00:11 2018 +0200 2.2 +++ b/ppp/stuff/ppp.cgi Sun May 06 10:39:28 2018 +0200 2.3 @@ -15,18 +15,19 @@ 2.4 TEXTDOMAIN_original=$TEXTDOMAIN 2.5 export TEXTDOMAIN='ppp' 2.6 2.7 + groups | grep -q dialout && dialout="" || dialout=" data-root" 2.8 case "$2" in 2.9 *VPN*) 2.10 [ "$(which pptp 2>/dev/null)$(which pptpd 2>/dev/null)" ] && cat <<EOT 2.11 -<li><a data-icon="vpn" href="ppp.cgi#pptp" data-root>$(_ 'PPTP')</a></li> 2.12 +<li><a data-icon="vpn" href="ppp.cgi#pptp"$dialout>$(_ 'PPTP')</a></li> 2.13 EOT 2.14 [ "$(which pppssh 2>/dev/null)" ] && cat <<EOT 2.15 -<li><a data-icon="vpn" href="ppp.cgi#pppssh" data-root>$(_ 'PPP/SSH')</a></li> 2.16 +<li><a data-icon="vpn" href="ppp.cgi#pppssh"$dialout>$(_ 'PPP/SSH')</a></li> 2.17 EOT 2.18 ;; 2.19 *) 2.20 cat <<EOT 2.21 -<li><a data-icon="modem" href="ppp.cgi" data-root>$(_ 'PPP Modem')</a></li> 2.22 +<li><a data-icon="modem" href="ppp.cgi"$dialout>$(_ 'PPP Modem')</a></li> 2.23 EOT 2.24 esac 2.25 export TEXTDOMAIN=$TEXTDOMAIN_original