mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
Samba CGI 2sprachig DE und ENG
Anpassung an der Samba Controll Datei Tango Icons hinzugefügt git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@479 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -74,20 +74,31 @@ int main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "smbrestart")==0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "smbstop")==0)
|
||||
{
|
||||
safe_system("/etc/rc.d/init.d/samba stop");
|
||||
printf(command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "smbstart")==0)
|
||||
{
|
||||
snprintf(command, BUFFER_SIZE-1, "smbd -D && nmbd -D && winbindd -D",);
|
||||
safe_system(command);
|
||||
safe_system("/etc/rc.d/init.d/samba start");
|
||||
printf(command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "smbrestart")==0)
|
||||
{
|
||||
safe_system("/etc/rc.d/init.d/samba restart");
|
||||
printf(command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "smbreload")==0)
|
||||
{
|
||||
safe_system("/etc/rc.d/init.d/samba reload");
|
||||
printf(command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user