Lines 164-175
pppd_pre_start()
Link Here
|
164 |
#Specialized stuff. Insert here actions particular to connection type (pppoe,pppoa,capi) |
164 |
#Specialized stuff. Insert here actions particular to connection type (pppoe,pppoa,capi) |
165 |
local insert_link_in_opts=1 |
165 |
local insert_link_in_opts=1 |
166 |
if ${haspppoe}; then |
166 |
if ${haspppoe}; then |
167 |
if [ ! -e /proc/net/pppoe ]; then |
167 |
# Load the PPPoE kernel module |
168 |
# Load the PPPoE kernel module |
168 |
if [ ! -e /proc/net/pppoe ] && ! modprobe pppoe >/dev/null 2>&1; then |
169 |
if ! modprobe pppoe; then |
169 |
eerror "kernel does not support PPPoE" |
170 |
eerror "kernel does not support PPPoE" |
170 |
return 1 |
171 |
return 1 |
|
|
172 |
fi |
173 |
fi |
171 |
fi |
174 |
|
172 |
|
175 |
# Ensure that the link exists and is up |
173 |
# Ensure that the link exists and is up |
Lines 178-189
pppd_pre_start()
Link Here
|
178 |
fi |
176 |
fi |
179 |
|
177 |
|
180 |
if ${haspppoa}; then |
178 |
if ${haspppoa}; then |
181 |
if [ ! -d /proc/net/atm ]; then |
179 |
# Load the PPPoA kernel module |
182 |
# Load the PPPoA kernel module |
180 |
if [ ! -d /proc/net/atm ] && ! modprobe pppoatm >/dev/null 2>&1; then |
183 |
if ! modprobe pppoatm; then |
181 |
eerror "kernel does not support PPPoATM" |
184 |
eerror "kernel does not support PPPoATM" |
182 |
return 1 |
185 |
return 1 |
|
|
186 |
fi |
187 |
fi |
183 |
fi |
188 |
|
184 |
|
189 |
if [ "${link}" != "/dev/null" ]; then |
185 |
if [ "${link}" != "/dev/null" ]; then |