User guide

46 Enhanced OS-9 for X86 PCAT
1
Installing and Configuring Enhanced OS-9
Modifying the Key Code
Changing the length of the key code or even the key code itself is easy.
From Hawk, click on security.c on the left hand side of the IDE to edit
the source file. Look around line 47 for the following code:
#define CODE_LEN 5
static char alarmCode[CODE_LEN] = { ’1’, ’2’, ’4’,
’5’, ’5’ };
The CODE_LEN definition can be changed to accommodate any code
length. Keep in mind that if you change the length, you should also
change the proper code in the alarmCode array to match the length.
Once the code has been changed:
Step 1. Save the file (File->Save)
Step 2. Build the security application again by right-clicking on the security
component on the left side of the Hawk IDE and selecting
Build
.
Step 3. Once the build has properly completed, we need to be sure the old
security application in our target is not running. We must unlink the
previously loaded security module by going to the Target menu and
selecting
Unlink
. A dialog box appears. Replace the name of the target
with your target’s IP address or name. Fill in the Module: field with the
name security (a link count of 1 should be sufficient to unlink the old
security module, so leave this field as is) Click on the Unlink button.
Step 4. Now load the new security module by right-clicking on the security
component like before, and selecting
Load
.
Step 5. Run the application again from the telnet session to your target.