Skip to content

Commit

Permalink
Add basic config files and update some details
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jun 6, 2013
1 parent a85bc14 commit 23a63a7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions config/dyn-modes/developer_mode.ini
@@ -0,0 +1,5 @@
[mode]
name = developer_mode
module = g_ether
network = 1
network_interface = usb0
4 changes: 4 additions & 0 deletions config/dyn-modes/mtp_mode.ini
@@ -0,0 +1,4 @@
[mode]
name = mtp_mode
module = g_ffs
appsync = 1
4 changes: 4 additions & 0 deletions config/run/mtp.ini
@@ -0,0 +1,4 @@
[info]
name = buteo.service
mode = mtp_mode
systemd = 1
5 changes: 3 additions & 2 deletions src/usb_moded-modesetting.c
Expand Up @@ -234,8 +234,8 @@ static void report_mass_storage_blocker(const char *mountpoint, int try)

}


/* TODO: clean up buteo-mtp hack */
#if 0
/* NOT NEEDED ANYMORE? : clean up buteo-mtp hack */
int set_mtp_mode(void)
{
mkdir("/dev/mtp", S_IRWXO|S_IRWXU);
Expand All @@ -244,6 +244,7 @@ int set_mtp_mode(void)

return 0;
}
#endif

#ifdef N900
int set_ovi_suite_mode(void)
Expand Down
4 changes: 2 additions & 2 deletions src/usb_moded.c
Expand Up @@ -310,8 +310,8 @@ void set_usb_mode(const char *mode)
int valid_mode(const char *mode)
{

if(!strcmp(MODE_MASS_STORAGE, mode) || !strcmp(MODE_OVI_SUITE, mode) || !strcmp(MODE_CHARGING, mode) ||
!strcmp(MODE_DEVELOPER,mode) || !strcmp(MODE_MTP,mode))
/* MODE_ASK and MODE_CHARGER are not modes that are settable seen their special status */
if(!strcmp(MODE_CHARGING, mode))
return(0);
else
{
Expand Down

0 comments on commit 23a63a7

Please sign in to comment.