+2008-10-30 Dan Williams <dcbw@redhat.com>
+
+ * src/ppp-manager/nm-ppp-manager.c
+ - (nm_ppp_manager_start): if /dev/ppp doesn't exist, load the
+ ppp_generic module to create it (bgo #533064)
+
2008-10-30 Dan Williams <dcbw@redhat.com>
Patch from Alexander Sack <asac@canonical.com>
#include <sys/ioctl.h>
#include <asm/types.h>
#include <net/if.h>
+#include <sys/stat.h>
#include <linux/ppp_defs.h>
#ifndef aligned_u64
NMSettingPPPOE *pppoe_setting;
NMCmdLine *ppp_cmd;
char *cmd_str;
+ struct stat st;
g_return_val_if_fail (NM_IS_PPP_MANAGER (manager), FALSE);
g_return_val_if_fail (NM_IS_ACT_REQUEST (req), FALSE);
+ /* Make sure /dev/ppp exists (bgo #533064) */
+ if (stat ("/dev/ppp", &st) || !S_ISCHR (st.st_mode))
+ system ("/sbin/modprobe ppp_generic");
+
connection = nm_act_request_get_connection (req);
ppp_setting = NM_SETTING_PPP (nm_connection_get_setting (connection, NM_TYPE_SETTING_PPP));
g_return_val_if_fail (ppp_setting != NULL, FALSE);