Lines 166-172
pppd_pre_start()
Link Here
|
166 |
if ${haspppoe}; then |
166 |
if ${haspppoe}; then |
167 |
if [ ! -e /proc/net/pppoe ]; then |
167 |
if [ ! -e /proc/net/pppoe ]; then |
168 |
# Load the PPPoE kernel module |
168 |
# Load the PPPoE kernel module |
169 |
if ! modprobe pppoe; then |
169 |
if type modprobe >/dev/null 2>&1 && ! modprobe pppoe; then |
170 |
eerror "kernel does not support PPPoE" |
170 |
eerror "kernel does not support PPPoE" |
171 |
return 1 |
171 |
return 1 |
172 |
fi |
172 |
fi |
Lines 180-186
pppd_pre_start()
Link Here
|
180 |
if ${haspppoa}; then |
180 |
if ${haspppoa}; then |
181 |
if [ ! -d /proc/net/atm ]; then |
181 |
if [ ! -d /proc/net/atm ]; then |
182 |
# Load the PPPoA kernel module |
182 |
# Load the PPPoA kernel module |
183 |
if ! modprobe pppoatm; then |
183 |
if type modprobe >/dev/null 2>&1 && ! modprobe pppoatm; then |
184 |
eerror "kernel does not support PPPoATM" |
184 |
eerror "kernel does not support PPPoATM" |
185 |
return 1 |
185 |
return 1 |
186 |
fi |
186 |
fi |