Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
CK1 SDK Programmer’s Reference Manual 
101 
 
On-CK1 Return:  Login path of the remote upgrade host in the configuration file 
 
Config File: 
/etc/config/default_ru_path
 
 On-Host Parameters: None 
 
On-Host Return:  Always return NULL 
Setting the Default Path 
 
Purpose:  Set the default path of the remote upgrade host. 
 
Syntax: 
int RUSetDefaultPath(char *path)
 
 On-CK1 Parameters:  path 
Value to use as the login path of the remote upgrade host 
 
On-CK1 Return: -1 
 Set 
failed 
0 Set 
succeeded 
 
Config File: 
/etc/config/default_ru_path
 
 On-Host Parameters:  path No 
action 
 
On-Host Return:  Always return -1 
Getting the Image Name 
 
Purpose:  Get the image file name in the assigned specified partition. 
 
Syntax: 
char *RUGetImageName(char *SpecPart)
 
 On-CK1 Parameters:  SpecPart 
{kernel, rootfs, usrlocal} 
 
On-CK1 Return:  Opposite image file name in the configuration file 
 
Config File: 
/etc/config/default_ru_image_$(SpecPart)
 
 On-Host Parameters:  SpecPart No 
action 
 
On-Host Return:  Always return NULL 
Setting the Image Name 
 
Purpose:  Set the image file name in the assigned specified partition. 
 
Syntax: 
int RUSetImageName(char *SpecPart, char *ImageName)
 
 On-CK1 Parameters:  SpecPart 
{kernel, rootfs, usrlocal} 
ImageName 
Opposite image file name 
 
On-CK1 Return: -1 
 Set 
failed 
0 Set 
succeeded 
 
Config File: 
/etc/config/default_ru_image_$(SpecPart)