Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
kdenetwork3
start-samba-on-fileshare.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File start-samba-on-fileshare.diff of Package kdenetwork3
Index: filesharing/simple/fileshare.cpp ================================================================================ --- filesharing/simple/fileshare.cpp +++ filesharing/simple/fileshare.cpp @@ -335,6 +335,22 @@ stream << m_smbConf; file.close(); + + if ( m_ccgui->shareGrp->isChecked() ) { + KProcess insserv; + insserv << "/sbin/insserv" << "nmb"; + insserv.start(KProcess::Block); + insserv << "/sbin/insserv" << "smb"; + insserv.start(KProcess::Block); + + KProcess nmb; + nmb << "/etc/init.d/nmb" << "start"; + if(!nmb.start(KProcess::Block) && nmb.normalExit()) { + KProcess smb; + smb << "/etc/init.d/smb" << "start"; + smb.start(KProcess::Block); + } + } } void KFileShareConfig::defaults()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor