1
/* SmoothWall setup program.
3
* This program is distributed under the terms of the GNU General Public
4
* Licence. See the file COPYING for details.
6
* (c) Lawrence Manning, 2001
9
* $Id: setup.h,v 1.4 2003/12/11 11:25:54 riddles Exp $
14
#include <libsmooth.h>
17
int handlehostname(void);
20
int handledomainname(void);
23
int handlenetworking(void);
29
int handlerootpassword(void);
30
int handlesetuppassword(void);
31
int handleadminpassword(void);
34
int writehostsfiles(void);
38
int handlekeymap(void);
41
int handletimezone(void);
48
#define NETCHANGE_TOTAL 4
50
#define SCANNED_NICS "/var/ipfire/ethernet/scanned_nics"
51
#define SYSDIR "/sys/class/net"
53
#define _GREEN_CARD_ 0
55
#define _ORANGE_CARD_ 2
61
char description[256];
69
char description[256];
74
int changeaddress(struct keyvalue *kv, char *colour, int typeflag,
75
char *defaultdhcphostname);
76
int gettype(char *type);
77
int setnetaddress(struct keyvalue *kv, char *colour);
78
void networkdialogcallbacktype(newtComponent cm, void *data);
79
int interfacecheck(struct keyvalue *kv, char *colour);
80
int rename_nics(void);
82
int create_udev(void);
83
int scan_network_cards(void);
84
int nicmenu(int colour);
85
int clear_card_entry(int cards);
86
int ask_clear_card_entry(int cards);
87
int manualdriver(char *driver, char *driveroptions);