#!/bin/ash
# 
# post-install-script:
# This script is run at the end of  RLM's FW update. 
# After all the files are installed, permissions and uid/gid's are set 
# using this script.
#
# Usage: 
# post-install-script <mount point for primary or backup>
# 
# Kiran Kamity, 11/02/2004
#

echo "Running post-install-script"

if ! [ $# -eq 1 ] ; then
  echo "Incorrect usage"
  exit 1;
fi

# Remove any duplicate users from the password file.
dedup_passwd

chown root:root $1/mnt/logs/etc/network/interfaces.RazorSW
chmod 755 $1/mnt/logs/etc/network/interfaces.RazorSW
chown root:root $1/mnt/logs/etc/network/interfaces.RazorNIC
chmod 755 $1/mnt/logs/etc/network/interfaces.RazorNIC
chown root:root $1/conf/Reference-sdr.dat
chmod 755 $1/conf/Reference-sdr.dat
chown root:root $1/conf/RazorL-sdr.dat
chmod 755 $1/conf/RazorL-sdr.dat
chown root:root $1/conf/RazorS-sdr.dat
chmod 755 $1/conf/RazorS-sdr.dat
chown root:root $1/conf/RazorM-sdr.dat
chmod 755 $1/conf/RazorM-sdr.dat
chown root:root $1/conf/platformcfg.dat
chmod 755 $1/conf/platformcfg.dat
chown root:root $1/conf/RazorM-i2c-map
chmod 755 $1/conf/RazorM-i2c-map
chown root:root $1/conf/RazorL-i2c-map
chmod 755 $1/conf/RazorL-i2c-map
chown root:root $1/conf/Reference.fru
chmod 755 $1/conf/Reference.fru
chown root:root $1/conf/RazorL.fru
chmod 755 $1/conf/RazorL.fru
chown root:root $1/conf/RazorS.fru
chmod 755 $1/conf/RazorS.fru
chown root:root $1/conf/RazorM.fru
chmod 755 $1/conf/RazorM.fru
chown -h root:root $1/bin/ping6
chown -h root:root $1/bin/traceroute
chown root:root $1/bin/grep
chmod 555 $1/bin/grep
chown root:root $1/bin/readlink
chmod 555 $1/bin/readlink
chown root:root $1/bin/sed
chmod 555 $1/bin/sed
chown root:root $1/bin/ip
chmod 555 $1/bin/ip
chown root:root $1/bin/sqlite3
chmod 755 $1/bin/sqlite3
chown root:root $1/bin/sqlited
chmod 4755 $1/bin/sqlited
chown root:root $1/bin/sensordbrdr
chmod 4755 $1/bin/sensordbrdr
chown root:root $1/bin/ping
chmod 6555 $1/bin/ping
chown root:root $1/bin/trunc
chmod 755 $1/bin/trunc
chown root:root $1/bin/busybox.network
chmod 4755 $1/bin/busybox.network
chown root:root $1/bin/busybox
chmod 755 $1/bin/busybox
chown -h root:root $1/bin/addgroup
chown -h root:root $1/bin/adduser
chown -h root:root $1/bin/ash
chown -h root:root $1/bin/cat
chown -h root:root $1/bin/chgrp
chown -h root:root $1/bin/chmod
chown -h root:root $1/bin/chown
chown -h root:root $1/bin/cp
chown -h root:root $1/bin/date
chown -h root:root $1/bin/dd
chown -h root:root $1/bin/deluser
chown -h root:root $1/bin/df
chown -h root:root $1/bin/dmesg
chown -h root:root $1/bin/echo
chown -h root:root $1/bin/getopt
chown -h root:root $1/bin/gunzip
chown -h root:root $1/bin/gzip
chown -h root:root $1/bin/hostname
chown -h root:root $1/bin/kill
chown -h root:root $1/bin/ln
chown -h root:root $1/bin/login
chown -h root:root $1/bin/ls
chown -h root:root $1/bin/mkdir
chown -h root:root $1/bin/mknod
chown -h root:root $1/bin/more
chown -h root:root $1/bin/mount
chown -h root:root $1/bin/mv
chown -h root:root $1/bin/netstat
chown -h root:root $1/bin/pidof
chown -h root:root $1/bin/ps
chown -h root:root $1/bin/pwd
chown -h root:root $1/bin/rm
chown -h root:root $1/bin/rmdir
chown -h root:root $1/bin/run-parts
chown -h root:root $1/bin/sh
chown -h root:root $1/bin/sleep
chown -h root:root $1/bin/stty
chown -h root:root $1/bin/su
chown -h root:root $1/bin/sync
chown -h root:root $1/bin/tar
chown -h root:root $1/bin/touch
chown -h root:root $1/bin/umount
chown -h root:root $1/bin/uname
chown -h root:root $1/bin/usleep
chown -h root:root $1/bin/vi
chown -h root:root $1/bin/watch
chown -h root:root $1/bin/zcat
chown -h root:root $1/dev/core
chown root:root $1/etc/ssh/sshd_config
chmod 755 $1/etc/ssh/sshd_config
chown root:root $1/etc/ssh/sshd_config.debug
chmod 755 $1/etc/ssh/sshd_config.debug
chown root:root $1/etc/ssh/sshd_config.default
chmod 755 $1/etc/ssh/sshd_config.default
chown root:root $1/etc/ssh/moduli
chmod 444 $1/etc/ssh/moduli
chown root:root $1/etc/init.d/ssh
chmod 755 $1/etc/init.d/ssh
chown root:root $1/etc/init.d/ssh_bg
chmod 755 $1/etc/init.d/ssh_bg
chown root:root $1/etc/init.d/rc
chmod 555 $1/etc/init.d/rc
chown root:root $1/etc/init.d/bootclean.sh
chmod 444 $1/etc/init.d/bootclean.sh
chown root:root $1/etc/init.d/sysklogd
chmod 555 $1/etc/init.d/sysklogd
chown root:root $1/etc/init.d/klogd
chmod 555 $1/etc/init.d/klogd
chown root:root $1/etc/init.d/module-init-tools
chmod 755 $1/etc/init.d/module-init-tools
chown root:root $1/etc/init.d/mountall.sh
chmod 555 $1/etc/init.d/mountall.sh
chown root:root $1/etc/init.d/ncsi_config.sh
chmod 755 $1/etc/init.d/ncsi_config.sh
chown root:root $1/etc/init.d/ifupdown
chmod 555 $1/etc/init.d/ifupdown
chown root:root $1/etc/init.d/networking
chmod 755 $1/etc/init.d/networking
chown root:root $1/etc/init.d/bootmisc.sh
chmod 555 $1/etc/init.d/bootmisc.sh
chown root:root $1/etc/init.d/sendsigs
chmod 555 $1/etc/init.d/sendsigs
chown root:root $1/etc/init.d/umountnfs.sh
chmod 555 $1/etc/init.d/umountnfs.sh
chown root:root $1/etc/init.d/reboot
chmod 555 $1/etc/init.d/reboot
chown root:root $1/etc/init.d/halt
chmod 555 $1/etc/init.d/halt
chown root:root $1/etc/init.d/single
chmod 555 $1/etc/init.d/single
chown root:root $1/etc/init.d/portmap
chmod 555 $1/etc/init.d/portmap
chown root:root $1/etc/init.d/cron
chmod 555 $1/etc/init.d/cron
chown root:root $1/etc/init.d/ipmistack
chmod 755 $1/etc/init.d/ipmistack
chown root:root $1/etc/init.d/create-i2cstat-sysfile
chmod 755 $1/etc/init.d/create-i2cstat-sysfile
chown root:root $1/etc/init.d/mutex_pid_monitor
chmod 755 $1/etc/init.d/mutex_pid_monitor
chown root:root $1/etc/init.d/upnp
chmod 755 $1/etc/init.d/upnp
chown root:root $1/etc/init.d/prepfl
chmod 755 $1/etc/init.d/prepfl
chown root:root $1/etc/init.d/stopgc
chmod 755 $1/etc/init.d/stopgc
chown root:root $1/etc/init.d/forcekill
chmod 755 $1/etc/init.d/forcekill
chown root:root $1/etc/init.d/initcomplete
chmod 755 $1/etc/init.d/initcomplete
chown root:root $1/etc/init.d/flumount
chmod 755 $1/etc/init.d/flumount
chown root:root $1/etc/init.d/nfs-common
chmod 555 $1/etc/init.d/nfs-common
chown root:root $1/etc/init.d/bat_update_bg.sh
chmod 755 $1/etc/init.d/bat_update_bg.sh
chown root:root $1/etc/init.d/fru_rescan.sh
chmod 755 $1/etc/init.d/fru_rescan.sh
chown root:root $1/etc/init.d/fru_cache.sh
chmod 755 $1/etc/init.d/fru_cache.sh
chown root:root $1/etc/init.d/netapp_initial_initscript
chmod 755 $1/etc/init.d/netapp_initial_initscript
chown root:root $1/etc/init.d/netapp_final_initscript
chmod 755 $1/etc/init.d/netapp_final_initscript
chown root:root $1/etc/init.d/bootcount
chmod 755 $1/etc/init.d/bootcount
chown root:root $1/etc/init.d/firewall
chmod 755 $1/etc/init.d/firewall
chown root:root $1/etc/init.d/do_eth032_networking.sh
chmod 755 $1/etc/init.d/do_eth032_networking.sh
chown root:root $1/etc/init.d/tap
chmod 755 $1/etc/init.d/tap
chown root:root $1/etc/init.d/hsam
chmod 755 $1/etc/init.d/hsam
chown root:root $1/etc/init.d/platform
chmod 755 $1/etc/init.d/platform
chown root:root $1/etc/init.d/create_fru_dirs
chmod 755 $1/etc/init.d/create_fru_dirs
chown root:root $1/etc/init.d/flashid
chmod 755 $1/etc/init.d/flashid
chown root:root $1/etc/init.d/hostname.sh
chmod 755 $1/etc/init.d/hostname.sh
chown root:root $1/etc/init.d/rcS
chmod 755 $1/etc/init.d/rcS
chown root:root $1/etc/init.d/devpts.sh
chmod 555 $1/etc/init.d/devpts.sh
chown root:root $1/etc/init.d/devshm.sh
chmod 555 $1/etc/init.d/devshm.sh
chown root:root $1/etc/init.d/umountfs
chmod 555 $1/etc/init.d/umountfs
chown root:root $1/etc/init.d/ntpdate
chmod 555 $1/etc/init.d/ntpdate
chown -h root:root $1/etc/rc3.d/S18portmap
chown -h root:root $1/etc/rc3.d/S20sshd
chown -h root:root $1/etc/rc3.d/S30cron
chown -h root:root $1/etc/rc3.d/S35BootCount
chown -h root:root $1/etc/rc3.d/S98FlashID
chown -h root:root $1/etc/rc3.d/S98tap
chown -h root:root $1/etc/rc3.d/S99NetApp
chown -h root:root $1/etc/rcS.d/S33modutils
chown -h root:root $1/etc/rcS.d/S34Hostname
chown -h root:root $1/etc/rcS.d/S35devshm.sh
chown -h root:root $1/etc/rcS.d/S36create-i2cstat-sysfile
chown -h root:root $1/etc/rcS.d/S12mutex_pid_monitor
chown -h root:root $1/etc/rcS.d/S35hsam
chown -h root:root $1/etc/rcS.d/S36ipmistack
chown -h root:root $1/etc/rcS.d/S39ifupdown
chown -h root:root $1/etc/rcS.d/S40networking
chown -h root:root $1/etc/rcS.d/S55bootmisc.sh
chown -h root:root $1/etc/rcS.d/S60ncsi_config
chown -h root:root $1/etc/rcS.d/S01NetApp
chown -h root:root $1/etc/rcS.d/S34Platform
chown -h root:root $1/etc/rcS.d/S35CreateFruDirs
chown -h root:root $1/etc/rcS.d/S10sysklogd
chown -h root:root $1/etc/rcS.d/S11klogd
chown -h root:root $1/etc/rc6.d/S20sendsigs
chown -h root:root $1/etc/rc6.d/K19firewall
chown -h root:root $1/etc/rc6.d/K20sshd
chown -h root:root $1/etc/rc6.d/K30cron
chown -h root:root $1/etc/rc6.d/S19umountnfs.sh
chown -h root:root $1/etc/rc6.d/S40umountfs
chown -h root:root $1/etc/rc6.d/S90reboot
chown -h root:root $1/etc/rc1.d/S20single
chown -h root:root $1/etc/rc1.d/K19firewall
chown -h root:root $1/etc/rc1.d/K20sshd
chown -h root:root $1/etc/rc1.d/K30cron
chown -h root:root $1/etc/rc7.d/K19firewall
chown -h root:root $1/etc/rc7.d/K20sshd
chown -h root:root $1/etc/rc7.d/K30cron
chown -h root:root $1/etc/rc7.d/S31umountnfs.sh
chown -h root:root $1/etc/rc7.d/S40flumount
chown -h root:root $1/etc/rc7.d/K90forcekill
chown -h root:root $1/etc/rc7.d/S51stopgc
chown -h root:root $1/etc/rc7.d/K52initcomplete
chown root:root $1/etc/default/devpts
chmod 444 $1/etc/default/devpts
chown root:root $1/etc/default/rcS
chmod 755 $1/etc/default/rcS
chown root:root $1/etc/network/if-down.d/down-script-eth0
chmod 755 $1/etc/network/if-down.d/down-script-eth0
chown root:root $1/etc/network/if-up.d/up-script-eth0
chmod 755 $1/etc/network/if-up.d/up-script-eth0
chown root:root $1/etc/network/if-pre-up.d/pre-up-script-eth0
chmod 755 $1/etc/network/if-pre-up.d/pre-up-script-eth0
chown root:root $1/etc/network/if-post-down.d/post-down-script-eth0
chmod 755 $1/etc/network/if-post-down.d/post-down-script-eth0
chown root:root $1/etc/network/options
chmod 755 $1/etc/network/options
chown root:root $1/etc/pam.d/login
chmod 555 $1/etc/pam.d/login
chown root:root $1/etc/pam.d/cron
chmod 444 $1/etc/pam.d/cron
chown root:root $1/etc/pam.d/common-auth
chmod 444 $1/etc/pam.d/common-auth
chown root:root $1/etc/pam.d/common-account
chmod 444 $1/etc/pam.d/common-account
chown root:root $1/etc/pam.d/common-password
chmod 444 $1/etc/pam.d/common-password
chown root:root $1/etc/pam.d/common-session
chmod 444 $1/etc/pam.d/common-session
chown root:root $1/etc/pam.d/other
chmod 444 $1/etc/pam.d/other
chown root:root $1/etc/pam.d/samba
chmod 444 $1/etc/pam.d/samba
chown root:root $1/etc/security/access.conf
chmod 444 $1/etc/security/access.conf
chown root:root $1/etc/security/group.conf
chmod 444 $1/etc/security/group.conf
chown root:root $1/etc/security/limits.conf
chmod 444 $1/etc/security/limits.conf
chown root:root $1/etc/security/pam_env.conf
chmod 444 $1/etc/security/pam_env.conf
chown root:root $1/etc/security/time.conf
chmod 444 $1/etc/security/time.conf
chown root:root $1/etc/cron.daily/logrotate
chmod 755 $1/etc/cron.daily/logrotate
chown root:root $1/etc/environ/env_razorl_policy.rc
chmod 755 $1/etc/environ/env_razorl_policy.rc
chown root:root $1/etc/environ/env_razorm_policy.rc
chmod 755 $1/etc/environ/env_razorm_policy.rc
chown -h root:root $1/etc/mtab
chown root:root $1/etc/group
chmod 755 $1/etc/group
chown root:root $1/etc/passwd
chmod 755 $1/etc/passwd
chown root:root $1/etc/sudoers
chmod 755 $1/etc/sudoers
chown root:root $1/etc/dhcpc-config
chmod 755 $1/etc/dhcpc-config
chown root:root $1/etc/syslog.conf
chmod 755 $1/etc/syslog.conf
chown root:root $1/etc/profile
chmod 755 $1/etc/profile
chown root:root $1/etc/inittab
chmod 755 $1/etc/inittab
chown root:root $1/etc/crontab
chmod 755 $1/etc/crontab
chown root:root $1/etc/logrotate.conf
chmod 755 $1/etc/logrotate.conf
chown root:root $1/etc/modules
chmod 755 $1/etc/modules
chown root:root $1/etc/login.defs
chmod 444 $1/etc/login.defs
chown root:root $1/etc/pam.conf
chmod 444 $1/etc/pam.conf
chown root:root $1/etc/services
chmod 444 $1/etc/services
chown root:root $1/etc/protocols
chmod 444 $1/etc/protocols
chown root:root $1/etc/host.conf
chmod 444 $1/etc/host.conf
chown root:root $1/etc/nsswitch.conf
chmod 755 $1/etc/nsswitch.conf
chown root:root $1/etc/watcher_sp_L.conf
chmod 755 $1/etc/watcher_sp_L.conf
chown root:root $1/etc/watcher_sp_M.conf
chmod 755 $1/etc/watcher_sp_M.conf
chown root:root $1/etc/syslog_ipfw.conf
chmod 755 $1/etc/syslog_ipfw.conf
chown root:root $1/etc/syslog_orig.conf
chmod 755 $1/etc/syslog_orig.conf
chown root:root $1/etc/svnrevision
chmod 666 $1/etc/svnrevision
chown root:root $1/etc/build.ident
chmod 664 $1/etc/build.ident
chown root:root $1/etc/fstab
chmod 755 $1/etc/fstab
chown root:root $1/etc/nsupdate_basic.sh
chmod 755 $1/etc/nsupdate_basic.sh
chown root:root $1/etc/localtime
chmod 444 $1/etc/localtime
chown root:root $1/etc/ld.so.conf
chmod 444 $1/etc/ld.so.conf
chown root:root $1/etc/defconfig/etc/network/interfaces.RazorSW
chmod 755 $1/etc/defconfig/etc/network/interfaces.RazorSW
chown root:root $1/etc/defconfig/etc/network/interfaces.RazorNIC
chmod 755 $1/etc/defconfig/etc/network/interfaces.RazorNIC
chown root:root $1/etc/forensics/forensics.xml
chmod 555 $1/etc/forensics/forensics.xml
chown root:root $1/etc/forensics/forensics_razor_m.xml
chmod 444 $1/etc/forensics/forensics_razor_m.xml
chown root:root $1/etc/forensics/forensics_razor_l.xml
chmod 444 $1/etc/forensics/forensics_razor_l.xml
chown root:root $1/firmware/RazorL/switch/controller_switch_img_16.txt
chmod 755 $1/firmware/RazorL/switch/controller_switch_img_16.txt
chown root:root $1/firmware/RazorM/switch/controller_switch_img_19.txt
chmod 755 $1/firmware/RazorM/switch/controller_switch_img_19.txt
chown root:root $1/lib/xtables/libipt_recent.so
chmod 755 $1/lib/xtables/libipt_recent.so
chown root:root $1/lib/xtables/libipt_icmp.so
chmod 755 $1/lib/xtables/libipt_icmp.so
chown root:root $1/lib/xtables/libip6t_icmp6.so
chmod 755 $1/lib/xtables/libip6t_icmp6.so
chown root:root $1/lib/xtables/libip6t_LOG.so
chmod 755 $1/lib/xtables/libip6t_LOG.so
chown root:root $1/lib/xtables/libipt_set.so
chmod 755 $1/lib/xtables/libipt_set.so
chown root:root $1/lib/xtables/libxt_limit.so
chmod 755 $1/lib/xtables/libxt_limit.so
chown root:root $1/lib/xtables/libxt_connlimit.so
chmod 755 $1/lib/xtables/libxt_connlimit.so
chown root:root $1/lib/xtables/libxt_hashlimit.so
chmod 755 $1/lib/xtables/libxt_hashlimit.so
chown root:root $1/lib/xtables/libxt_iprange.so
chmod 755 $1/lib/xtables/libxt_iprange.so
chown root:root $1/lib/xtables/libipt_LOG.so
chmod 755 $1/lib/xtables/libipt_LOG.so
chown root:root $1/lib/xtables/libxt_standard.so
chmod 755 $1/lib/xtables/libxt_standard.so
chown root:root $1/lib/xtables/libxt_state.so
chmod 755 $1/lib/xtables/libxt_state.so
chown root:root $1/lib/xtables/libxt_mac.so
chmod 755 $1/lib/xtables/libxt_mac.so
chown root:root $1/lib/xtables/libxt_tcp.so
chmod 755 $1/lib/xtables/libxt_tcp.so
chown root:root $1/lib/xtables/libipt_REJECT.so
chmod 755 $1/lib/xtables/libipt_REJECT.so
chown root:root $1/lib/xtables/libxt_time.so
chmod 755 $1/lib/xtables/libxt_time.so
chown root:root $1/lib/xtables/libxt_udp.so
chmod 755 $1/lib/xtables/libxt_udp.so
chown root:root $1/lib/xtables/libxt_u32.so
chmod 755 $1/lib/xtables/libxt_u32.so
chown root:root $1/lib/xtables/libipt_addrtype.so
chmod 755 $1/lib/xtables/libipt_addrtype.so
chown root:root $1/lib/xtables/libipt_ah.so
chmod 755 $1/lib/xtables/libipt_ah.so
chown root:root $1/lib/xtables/libxt_physdev.so
chmod 755 $1/lib/xtables/libxt_physdev.so
chown root:root $1/lib/xtables/libxt_pkttype.so
chmod 755 $1/lib/xtables/libxt_pkttype.so
chown root:root $1/lib/xtables/libipt_policy.so
chmod 755 $1/lib/xtables/libipt_policy.so
chown root:root $1/lib/xtables/libxt_connbytes.so
chmod 755 $1/lib/xtables/libxt_connbytes.so
chown root:root $1/lib/xtables/libxt_rateest.so
chmod 755 $1/lib/xtables/libxt_rateest.so
chown root:root $1/lib/xtables/libxt_RATEEST.so
chmod 755 $1/lib/xtables/libxt_RATEEST.so
chown root:root $1/lib/xtables/libipt_SNAT.so
chmod 755 $1/lib/xtables/libipt_SNAT.so
chown root:root $1/lib/modules/2.6.39.4-ami/misc/HwTestMod.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/HwTestMod.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/helper.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/helper.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/gpio.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/gpio.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/jtag.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/jtag.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/tap.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/tap.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/kcs.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/kcs.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/adc.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/adc.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/i2c-vsc452.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/i2c-vsc452.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/pos.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/pos.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/peci.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/peci.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/mdcio.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/mdcio.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/spi.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/spi.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/enet_switch.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/enet_switch.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/kdbg.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/kdbg.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/supportfpga.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/supportfpga.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/tfifo.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/tfifo.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/expander_uart.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/expander_uart.ko
chown root:root $1/lib/modules/2.6.39.4-ami/misc/kmtest.ko
chmod 755 $1/lib/modules/2.6.39.4-ami/misc/kmtest.ko
chown -h root:root $1/lib/security/pam_unix_acct.so
chown -h root:root $1/lib/security/pam_unix_auth.so
chown -h root:root $1/lib/security/pam_unix_passwd.so
chown -h root:root $1/lib/security/pam_unix_session.so
chown root:root $1/lib/security/pam_unix.so
chmod 444 $1/lib/security/pam_unix.so
chown root:root $1/lib/security/pam_limits.so
chmod 444 $1/lib/security/pam_limits.so
chown root:root $1/lib/security/pam_env.so
chmod 444 $1/lib/security/pam_env.so
chown root:root $1/lib/security/pam_nologin.so
chmod 444 $1/lib/security/pam_nologin.so
chown -h root:root $1/lib/ld-linux.so.2
chown -h root:root $1/lib/libc.so.6
chown -h root:root $1/lib/ld.so.1
chown -h root:root $1/lib/libdl.so.2
chown -h root:root $1/lib/libcrypt.so.1
chown -h root:root $1/lib/libwrap.so.0
chown -h root:root $1/lib/libnsl.so.1
chown -h root:root $1/lib/libpam.so.0
chown -h root:root $1/lib/libblkid.so.1
chown -h root:root $1/lib/libpthread.so.0
chown -h root:root $1/lib/libnss_files.so.2
chown -h root:root $1/lib/libnss_dns.so.2
chown -h root:root $1/lib/libresolv.so.2
chown -h root:root $1/lib/libutil.so.1
chown -h root:root $1/lib/libsqlite3.so.0
chown -h root:root $1/lib/libm.so.6
chown -h root:root $1/lib/libpopt.so
chown -h root:root $1/lib/libpopt.so.0
chown -h root:root $1/lib/libuuid.so.1
chown root:root $1/lib/ld-2.3.2.so
chmod 555 $1/lib/ld-2.3.2.so
chown root:root $1/lib/libc-2.3.2.so
chmod 555 $1/lib/libc-2.3.2.so
chown root:root $1/lib/libdl-2.3.2.so
chmod 444 $1/lib/libdl-2.3.2.so
chown root:root $1/lib/librt.so.1
chmod 444 $1/lib/librt.so.1
chown root:root $1/lib/libgcc_s.so.1
chmod 444 $1/lib/libgcc_s.so.1
chown root:root $1/lib/libcrypt-2.3.2.so
chmod 444 $1/lib/libcrypt-2.3.2.so
chown root:root $1/lib/libpam.so.0.76
chmod 444 $1/lib/libpam.so.0.76
chown root:root $1/lib/libm-2.3.2.so
chmod 444 $1/lib/libm-2.3.2.so
chown root:root $1/lib/libblkid.so.1.0
chmod 444 $1/lib/libblkid.so.1.0
chown root:root $1/lib/libpopt.so.0.0.0
chmod 444 $1/lib/libpopt.so.0.0.0
chown root:root $1/lib/libuuid.so.1.2
chmod 444 $1/lib/libuuid.so.1.2
chown root:root $1/lib/libpthread-0.10.so
chmod 664 $1/lib/libpthread-0.10.so
chown root:root $1/lib/libnss_files-2.3.2.so
chmod 444 $1/lib/libnss_files-2.3.2.so
chown root:root $1/lib/libnss_dns-2.3.2.so
chmod 444 $1/lib/libnss_dns-2.3.2.so
chown root:root $1/lib/libresolv-2.3.2.so
chmod 444 $1/lib/libresolv-2.3.2.so
chown root:root $1/lib/libwrap.so.0.7.6
chmod 444 $1/lib/libwrap.so.0.7.6
chown root:root $1/lib/libnsl-2.3.2.so
chmod 444 $1/lib/libnsl-2.3.2.so
chown root:root $1/lib/libutil-2.3.2.so
chmod 444 $1/lib/libutil-2.3.2.so
chown root:root $1/lib/libsqlite3.so.0.8.6
chmod 755 $1/lib/libsqlite3.so.0.8.6
chown root:root $1/lib/libxtables.so.0
chmod 755 $1/lib/libxtables.so.0
chown -h root:root $1/sbin/reboot
chown -h root:root $1/sbin/poweroff
chown root:root $1/sbin/init
chmod 555 $1/sbin/init
chown root:root $1/sbin/getty
chmod 555 $1/sbin/getty
chown root:root $1/sbin/syslogd
chmod 555 $1/sbin/syslogd
chown root:root $1/sbin/klogd
chmod 555 $1/sbin/klogd
chown root:root $1/sbin/start-stop-daemon
chmod 555 $1/sbin/start-stop-daemon
chown root:root $1/sbin/killall5
chmod 555 $1/sbin/killall5
chown root:root $1/sbin/halt
chmod 555 $1/sbin/halt
chown root:root $1/sbin/shutdown
chmod 755 $1/sbin/shutdown
chown root:root $1/sbin/portmap
chmod 555 $1/sbin/portmap
chown root:root $1/sbin/mii-tool
chmod 555 $1/sbin/mii-tool
chown root:root $1/sbin/iptables
chmod 755 $1/sbin/iptables
chown root:root $1/sbin/ip6tables
chmod 755 $1/sbin/ip6tables
chown root:root $1/sbin/MAKEDEV
chmod 555 $1/sbin/MAKEDEV
chown root:root $1/sbin/dhcpcd
chmod 555 $1/sbin/dhcpcd
chown root:root $1/sbin/rpc.lockd
chmod 555 $1/sbin/rpc.lockd
chown root:root $1/sbin/rpc.statd
chmod 555 $1/sbin/rpc.statd
chown root:root $1/sbin/showmount
chmod 555 $1/sbin/showmount
chown -h root:root $1/sbin/vconfig
chown root:root $1/sbin/netapp_init
chmod 755 $1/sbin/netapp_init
chown root:root $1/sbin/ngetty
chmod 755 $1/sbin/ngetty
chown -h root:root $1/sbin/arp
chown -h root:root $1/sbin/depmod
chown -h root:root $1/sbin/ifconfig
chown -h root:root $1/sbin/ifdown
chown -h root:root $1/sbin/ifenslave
chown -h root:root $1/sbin/ifup
chown -h root:root $1/sbin/insmod
chown -h root:root $1/sbin/lsmod
chown -h root:root $1/sbin/mkfs.minix
chown -h root:root $1/sbin/modprobe
chown -h root:root $1/sbin/pivot_root
chown -h root:root $1/sbin/rmmod
chown -h root:root $1/sbin/route
chown -h root:root $1/sbin/slattach
chown -h root:root $1/sbin/udhcpc
chown -h root:root $1/usr/bin/awk
chown root:root $1/usr/bin/find
chmod 555 $1/usr/bin/find
chown root:root $1/usr/bin/diff
chmod 555 $1/usr/bin/diff
chown root:root $1/usr/bin/gawk
chmod 555 $1/usr/bin/gawk
chown root:root $1/usr/bin/nandwrite
chmod 755 $1/usr/bin/nandwrite
chown root:root $1/usr/bin/flashcp
chmod 755 $1/usr/bin/flashcp
chown root:root $1/usr/bin/flash_erase
chmod 755 $1/usr/bin/flash_erase
chown root:root $1/usr/bin/flash_eraseall
chmod 755 $1/usr/bin/flash_eraseall
chown root:root $1/usr/bin/flash_info
chmod 755 $1/usr/bin/flash_info
chown root:root $1/usr/bin/flash_lock
chmod 755 $1/usr/bin/flash_lock
chown root:root $1/usr/bin/flash_unlock
chmod 755 $1/usr/bin/flash_unlock
chown root:root $1/usr/bin/nanddump
chmod 755 $1/usr/bin/nanddump
chown root:root $1/usr/bin/nandread
chmod 755 $1/usr/bin/nandread
chown root:root $1/usr/bin/nandcheck
chmod 755 $1/usr/bin/nandcheck
chown root:root $1/usr/bin/nandtest
chmod 755 $1/usr/bin/nandtest
chown root:root $1/usr/bin/mkfs.jffs2
chmod 755 $1/usr/bin/mkfs.jffs2
chown root:root $1/usr/bin/tee
chmod 555 $1/usr/bin/tee
chown root:root $1/usr/bin/ssh-keygen
chmod 755 $1/usr/bin/ssh-keygen
chown root:root $1/usr/bin/scp
chmod 755 $1/usr/bin/scp
chown root:root $1/usr/bin/ssh
chmod 755 $1/usr/bin/ssh
chown root:root $1/usr/bin/at
chmod 555 $1/usr/bin/at
chown root:root $1/usr/bin/strace
chmod 555 $1/usr/bin/strace
chown root:root $1/usr/bin/hexdump
chmod 555 $1/usr/bin/hexdump
chown root:root $1/usr/bin/sudo
chmod 755 $1/usr/bin/sudo
chown root:root $1/usr/bin/lsof
chmod 555 $1/usr/bin/lsof
chown -h root:root $1/usr/bin/[
chown -h root:root $1/usr/bin/[[
chown -h root:root $1/usr/bin/basename
chown -h root:root $1/usr/bin/clear
chown -h root:root $1/usr/bin/cmp
chown -h root:root $1/usr/bin/cut
chown -h root:root $1/usr/bin/dirname
chown -h root:root $1/usr/bin/dos2unix
chown -h root:root $1/usr/bin/du
chown -h root:root $1/usr/bin/expr
chown -h root:root $1/usr/bin/free
chown -h root:root $1/usr/bin/head
chown -h root:root $1/usr/bin/hostid
chown -h root:root $1/usr/bin/id
chown -h root:root $1/usr/bin/ipcs
chown -h root:root $1/usr/bin/killall
chown -h root:root $1/usr/bin/length
chown -h root:root $1/usr/bin/less
chown -h root:root $1/usr/bin/logger
chown -h root:root $1/usr/bin/md5sum
chown -h root:root $1/usr/bin/nslookup
chown -h root:root $1/usr/bin/printf
chown -h root:root $1/usr/bin/reset
chown -h root:root $1/usr/bin/seq
chown -h root:root $1/usr/bin/sort
chown -h root:root $1/usr/bin/strings
chown -h root:root $1/usr/bin/tail
chown -h root:root $1/usr/bin/test
chown -h root:root $1/usr/bin/time
chown -h root:root $1/usr/bin/top
chown -h root:root $1/usr/bin/tty
chown -h root:root $1/usr/bin/uniq
chown -h root:root $1/usr/bin/unix2dos
chown -h root:root $1/usr/bin/uptime
chown -h root:root $1/usr/bin/wc
chown -h root:root $1/usr/bin/wget
chown -h root:root $1/usr/bin/which
chown -h root:root $1/usr/bin/who
chown -h root:root $1/usr/bin/whoami
chown -h root:root $1/usr/bin/xargs
chown root:root $1/usr/bin/testfile-dir/test-file
chmod 775 $1/usr/bin/testfile-dir/test-file
chown root:root $1/usr/bin/testfile-dir/test-file.ini
chmod 444 $1/usr/bin/testfile-dir/test-file.ini
chown root:root $1/usr/sbin/tcpdump
chmod 755 $1/usr/sbin/tcpdump
chown root:root $1/usr/sbin/arp
chmod 555 $1/usr/sbin/arp
chown root:root $1/usr/sbin/logrotate
chmod 555 $1/usr/sbin/logrotate
chown root:root $1/usr/sbin/cron
chmod 555 $1/usr/sbin/cron
chown root:root $1/usr/sbin/arping
chmod 555 $1/usr/sbin/arping
chown root:root $1/usr/sbin/sshd
chmod 755 $1/usr/sbin/sshd
chown root:root $1/usr/sbin/nfsstat
chmod 555 $1/usr/sbin/nfsstat
chown root:root $1/usr/sbin/lsof
chmod 555 $1/usr/sbin/lsof
chown -h root:root $1/usr/sbin/chroot
chown -h root:root $1/usr/sbin/inetd
chown -h root:root $1/usr/lib/libz.so
chown -h root:root $1/usr/lib/libz.so.1
chown -h root:root $1/usr/lib/libcrypto.so
chown -h root:root $1/usr/lib/libcrypto.so.0
chown -h root:root $1/usr/lib/libstdc++.so.6
chown -h root:root $1/usr/lib/libstdc++.so
chown -h root:root $1/usr/lib/libexpat.so.1
chown -h root:root $1/usr/lib/libexpat.so
chown -h root:root $1/usr/lib/libpcap.so.0.8
chown -h root:root $1/usr/lib/libitpdriver.so
chown -h root:root $1/usr/lib/libssl.so
chown -h root:root $1/usr/lib/libssl.so.0
chown -h root:root $1/usr/lib/libgcrypt.so.11
chown -h root:root $1/usr/lib/libgcrypt.so
chown -h root:root $1/usr/lib/libenvcmd.so.1
chown root:root $1/usr/lib/libz.so.1.2.2
chmod 444 $1/usr/lib/libz.so.1.2.2
chown root:root $1/usr/lib/libcrypto.so.1.0.0
chmod 644 $1/usr/lib/libcrypto.so.1.0.0
chown root:root $1/usr/lib/libssl.so.1.0.0
chmod 644 $1/usr/lib/libssl.so.1.0.0
chown root:root $1/usr/lib/libgcrypt.so.11.1.1
chmod 444 $1/usr/lib/libgcrypt.so.11.1.1
chown root:root $1/usr/lib/libpcap.so.1.6.2
chmod 755 $1/usr/lib/libpcap.so.1.6.2
chown root:root $1/usr/lib/libexpat.so.1.0.0
chmod 444 $1/usr/lib/libexpat.so.1.0.0
chown root:root $1/usr/lib/libstdc++.so.6.0.3
chmod 444 $1/usr/lib/libstdc++.so.6.0.3
chown root:root $1/usr/lib/libncurses.so.5
chmod 755 $1/usr/lib/libncurses.so.5
chown root:root $1/usr/lib/libitpdriver.so.0
chmod 755 $1/usr/lib/libitpdriver.so.0
chown root:root $1/usr/lib/libpcap.so.0.8.3
chmod 444 $1/usr/lib/libpcap.so.0.8.3
chown root:root $1/usr/lib/libspregex.so
chmod 755 $1/usr/lib/libspregex.so
chown root:root $1/usr/lib/libenvcmd.so
chmod 755 $1/usr/lib/libenvcmd.so
chown root:root $1/usr/lib/libenvdev.so
chmod 755 $1/usr/lib/libenvdev.so
chown root:root $1/usr/local/bin/IPMIMain
chmod 755 $1/usr/local/bin/IPMIMain
chown root:root $1/usr/local/bin/LAN
chmod 755 $1/usr/local/bin/LAN
chown root:root $1/usr/local/bin/MsgHndlr
chmod 755 $1/usr/local/bin/MsgHndlr
chown root:root $1/usr/local/bin/KCS
chmod 755 $1/usr/local/bin/KCS
chown root:root $1/usr/local/bin/Timer
chmod 755 $1/usr/local/bin/Timer
chown root:root $1/usr/local/bin/rlm_ip6fw_disable.sh
chmod 700 $1/usr/local/bin/rlm_ip6fw_disable.sh
chown root:root $1/usr/local/bin/rlm_ip6fw_enable.sh
chmod 700 $1/usr/local/bin/rlm_ip6fw_enable.sh
chown root:root $1/usr/local/bin/testlibipmi
chmod 755 $1/usr/local/bin/testlibipmi
chown root:root $1/usr/local/bin/dumpsharedmem
chmod 755 $1/usr/local/bin/dumpsharedmem
chown root:root $1/usr/local/bin/sh_root
chmod 4755 $1/usr/local/bin/sh_root
chown root:root $1/usr/local/bin/discovery
chmod 755 $1/usr/local/bin/discovery
chown root:root $1/usr/local/bin/defaulthost
chmod 755 $1/usr/local/bin/defaulthost
chown root:root $1/usr/local/bin/cpConf
chmod 755 $1/usr/local/bin/cpConf
chown root:root $1/usr/local/bin/mkMiniMe
chmod 755 $1/usr/local/bin/mkMiniMe
chown root:root $1/usr/local/bin/rlm_ip6fw_collect_stats
chmod 700 $1/usr/local/bin/rlm_ip6fw_collect_stats
chown root:root $1/usr/local/bin/rlm_ip6log_pkts.sh
chmod 700 $1/usr/local/bin/rlm_ip6log_pkts.sh
chown root:root $1/usr/local/bin/ipmitool
chmod 775 $1/usr/local/bin/ipmitool
chown root:root $1/usr/local/bin/gpiotool
chmod 755 $1/usr/local/bin/gpiotool
chown root:root $1/usr/local/bin/i2c-test
chmod 755 $1/usr/local/bin/i2c-test
chown root:root $1/usr/local/bin/psu_dump
chmod 4755 $1/usr/local/bin/psu_dump
chown root:root $1/usr/local/bin/jtag_debug
chmod 755 $1/usr/local/bin/jtag_debug
chown root:root $1/usr/local/bin/SELTextDump
chmod 755 $1/usr/local/bin/SELTextDump
chown root:root $1/usr/local/bin/adcapp
chmod 755 $1/usr/local/bin/adcapp
chown root:root $1/usr/local/bin/peciapp
chmod 755 $1/usr/local/bin/peciapp
chown root:root $1/usr/local/bin/fw_setenv
chmod 755 $1/usr/local/bin/fw_setenv
chown root:root $1/usr/local/bin/fw_printenv
chmod 755 $1/usr/local/bin/fw_printenv
chown root:root $1/usr/local/bin/wdttool
chmod 755 $1/usr/local/bin/wdttool
chown root:root $1/usr/local/bin/switch
chmod 755 $1/usr/local/bin/switch
chown root:root $1/usr/local/bin/nuvoton
chmod 755 $1/usr/local/bin/nuvoton
chown root:root $1/usr/local/bin/agentlite
chmod 4755 $1/usr/local/bin/agentlite
chown root:root $1/usr/local/bin/switchioxm
chmod 755 $1/usr/local/bin/switchioxm
chown root:root $1/usr/local/bin/pcieswitch
chmod 4755 $1/usr/local/bin/pcieswitch
chown root:root $1/usr/local/bin/Test
chmod 755 $1/usr/local/bin/Test
chown root:root $1/usr/local/bin/fan_controller
chmod 4755 $1/usr/local/bin/fan_controller
chown root:root $1/usr/local/bin/mp_controller
chmod 755 $1/usr/local/bin/mp_controller
chown root:root $1/usr/local/bin/ecctool
chmod 755 $1/usr/local/bin/ecctool
chown root:root $1/usr/local/bin/mutexapp
chmod 755 $1/usr/local/bin/mutexapp
chown root:root $1/usr/local/bin/supportfpgatool
chmod 4755 $1/usr/local/bin/supportfpgatool
chown root:root $1/usr/local/bin/ebodcpldtool
chmod 4755 $1/usr/local/bin/ebodcpldtool
chown root:root $1/usr/local/bin/gm_pid_monitor
chmod 755 $1/usr/local/bin/gm_pid_monitor
chown root:root $1/usr/local/bin/dump-i2c-statistics.sh
chmod 755 $1/usr/local/bin/dump-i2c-statistics.sh
chown root:root $1/usr/local/bin/i2cmap_parser
chmod 755 $1/usr/local/bin/i2cmap_parser
chown root:root $1/usr/local/bin/pstree
chmod 755 $1/usr/local/bin/pstree
chown root:root $1/usr/local/bin/kdbgapp
chmod 755 $1/usr/local/bin/kdbgapp
chown root:root $1/usr/local/bin/configtool
chmod 755 $1/usr/local/bin/configtool
chown root:root $1/usr/local/bin/battery
chmod 555 $1/usr/local/bin/battery
chown root:root $1/usr/local/bin/pktd_reader
chmod 755 $1/usr/local/bin/pktd_reader
chown root:root $1/usr/local/bin/pktd_writer
chmod 755 $1/usr/local/bin/pktd_writer
chown root:root $1/usr/local/bin/watcher
chmod 755 $1/usr/local/bin/watcher
chown root:root $1/usr/local/bin/rlm_stats
chmod 755 $1/usr/local/bin/rlm_stats
chown root:root $1/usr/local/bin/ecc_stats
chmod 755 $1/usr/local/bin/ecc_stats
chown root:root $1/usr/local/bin/loopd
chmod 755 $1/usr/local/bin/loopd
chown root:root $1/usr/local/bin/sel
chmod 755 $1/usr/local/bin/sel
chown root:root $1/usr/local/bin/sel_logger
chmod 755 $1/usr/local/bin/sel_logger
chown root:root $1/usr/local/bin/scr
chmod 755 $1/usr/local/bin/scr
chown root:root $1/usr/local/bin/dumper
chmod 755 $1/usr/local/bin/dumper
chown root:root $1/usr/local/bin/loggerd
chmod 755 $1/usr/local/bin/loggerd
chown root:root $1/usr/local/bin/resource_monitor
chmod 755 $1/usr/local/bin/resource_monitor
chown root:root $1/usr/local/bin/f2rbeat
chmod 755 $1/usr/local/bin/f2rbeat
chown root:root $1/usr/local/bin/r2fbeat
chmod 755 $1/usr/local/bin/r2fbeat
chown root:root $1/usr/local/bin/eventd
chmod 755 $1/usr/local/bin/eventd
chown root:root $1/usr/local/bin/linkd
chmod 755 $1/usr/local/bin/linkd
chown root:root $1/usr/local/bin/acp_rstd
chmod 755 $1/usr/local/bin/acp_rstd
chown root:root $1/usr/local/bin/acp_sbb
chmod 755 $1/usr/local/bin/acp_sbb
chown root:root $1/usr/local/bin/asupd
chmod 755 $1/usr/local/bin/asupd
chown root:root $1/usr/local/bin/eventfifod
chmod 755 $1/usr/local/bin/eventfifod
chown root:root $1/usr/local/bin/splogd
chmod 755 $1/usr/local/bin/splogd
chown root:root $1/usr/local/bin/scratchpad
chmod 4755 $1/usr/local/bin/scratchpad
chown root:root $1/usr/local/bin/orftp_rcvr
chmod 755 $1/usr/local/bin/orftp_rcvr
chown root:root $1/usr/local/bin/orftp_sender
chmod 755 $1/usr/local/bin/orftp_sender
chown root:root $1/usr/local/bin/trapd
chmod 755 $1/usr/local/bin/trapd
chown root:root $1/usr/local/bin/fud_sp
chmod 755 $1/usr/local/bin/fud_sp
chown root:root $1/usr/local/bin/rlm_gdb
chmod 755 $1/usr/local/bin/rlm_gdb
chown root:root $1/usr/local/bin/fud_eth
chmod 4755 $1/usr/local/bin/fud_eth
chown root:root $1/usr/local/bin/wipeclean
chmod 4755 $1/usr/local/bin/wipeclean
chown root:root $1/usr/local/bin/configd
chmod 755 $1/usr/local/bin/configd
chown root:root $1/usr/local/bin/set_debugmode.sh
chmod 755 $1/usr/local/bin/set_debugmode.sh
chown root:root $1/usr/local/bin/cli
chmod 755 $1/usr/local/bin/cli
chown root:root $1/usr/local/bin/oem_ipmi
chmod 4755 $1/usr/local/bin/oem_ipmi
chown root:root $1/usr/local/bin/splog
chmod 755 $1/usr/local/bin/splog
chown root:root $1/usr/local/bin/isvcd
chmod 755 $1/usr/local/bin/isvcd
chown root:root $1/usr/local/bin/acptstd
chmod 755 $1/usr/local/bin/acptstd
chown root:root $1/usr/local/bin/fruprog
chmod 4755 $1/usr/local/bin/fruprog
chown root:root $1/usr/local/bin/fruAutoGen
chmod 755 $1/usr/local/bin/fruAutoGen
chown root:root $1/usr/local/bin/batTool
chmod 4755 $1/usr/local/bin/batTool
chown root:root $1/usr/local/bin/system_watchdog
chmod 755 $1/usr/local/bin/system_watchdog
chown root:root $1/usr/local/bin/inet_pton
chmod 4755 $1/usr/local/bin/inet_pton
chown root:root $1/usr/local/bin/peci_proxy
chmod 4755 $1/usr/local/bin/peci_proxy
chown root:root $1/usr/local/bin/fips_test
chmod 4755 $1/usr/local/bin/fips_test
chown root:root $1/usr/local/bin/systemshell_login
chmod 4755 $1/usr/local/bin/systemshell_login
chown root:root $1/usr/local/bin/ontap_conf.sh
chmod 755 $1/usr/local/bin/ontap_conf.sh
chown root:root $1/usr/local/bin/rlm_conf.sh
chmod 755 $1/usr/local/bin/rlm_conf.sh
chown root:root $1/usr/local/bin/conf_adapter.sh
chmod 755 $1/usr/local/bin/conf_adapter.sh
chown root:root $1/usr/local/bin/rlm_cli_log_audit.sh
chmod 755 $1/usr/local/bin/rlm_cli_log_audit.sh
chown root:root $1/usr/local/bin/sp_cli_version.sh
chmod 755 $1/usr/local/bin/sp_cli_version.sh
chown root:root $1/usr/local/bin/rlm_cli_events_search.sh
chmod 755 $1/usr/local/bin/rlm_cli_events_search.sh
chown root:root $1/usr/local/bin/compute_file_diffs
chmod 755 $1/usr/local/bin/compute_file_diffs
chown root:root $1/usr/local/bin/ipaddr.sh
chmod 755 $1/usr/local/bin/ipaddr.sh
chown root:root $1/usr/local/bin/stop_msghandler.sh
chmod 755 $1/usr/local/bin/stop_msghandler.sh
chown root:root $1/usr/local/bin/sim_fud.sh
chmod 755 $1/usr/local/bin/sim_fud.sh
chown root:root $1/usr/local/bin/consume_memory.sh
chmod 755 $1/usr/local/bin/consume_memory.sh
chown root:root $1/usr/local/bin/set_ssh_firewall_rules.sh
chmod 755 $1/usr/local/bin/set_ssh_firewall_rules.sh
chown root:root $1/usr/local/bin/ssh_control.sh
chmod 4755 $1/usr/local/bin/ssh_control.sh
chown root:root $1/usr/local/bin/rlm_conf_awk_rules
chmod 755 $1/usr/local/bin/rlm_conf_awk_rules
chown root:root $1/usr/local/bin/token.sh
chmod 755 $1/usr/local/bin/token.sh
chown root:root $1/usr/local/bin/agent_state.sh
chmod 755 $1/usr/local/bin/agent_state.sh
chown root:root $1/usr/local/bin/version.sh
chmod 755 $1/usr/local/bin/version.sh
chown root:root $1/usr/local/bin/gdb_modes.sh
chmod 755 $1/usr/local/bin/gdb_modes.sh
chown root:root $1/usr/local/bin/burnImage.sh
chmod 755 $1/usr/local/bin/burnImage.sh
chown root:root $1/usr/local/bin/debug.sh
chmod 755 $1/usr/local/bin/debug.sh
chown root:root $1/usr/local/bin/collect_acp_messages.sh
chmod 755 $1/usr/local/bin/collect_acp_messages.sh
chown root:root $1/usr/local/bin/show_hw_info.sh
chmod 755 $1/usr/local/bin/show_hw_info.sh
chown root:root $1/usr/local/bin/get_leds.sh
chmod 755 $1/usr/local/bin/get_leds.sh
chown root:root $1/usr/local/bin/check_fw_revision.sh
chmod 755 $1/usr/local/bin/check_fw_revision.sh
chown root:root $1/usr/local/bin/acp_init_expander_thresholds.sh
chmod 4755 $1/usr/local/bin/acp_init_expander_thresholds.sh
chown root:root $1/usr/local/bin/get_sensor_threshold.sh
chmod 755 $1/usr/local/bin/get_sensor_threshold.sh
chown root:root $1/usr/local/bin/collect_fw_vers.sh
chmod 755 $1/usr/local/bin/collect_fw_vers.sh
chown root:root $1/usr/local/bin/consolidate_logs.sh
chmod 755 $1/usr/local/bin/consolidate_logs.sh
chown root:root $1/usr/local/bin/ausp_misc_logs.sh
chmod 755 $1/usr/local/bin/ausp_misc_logs.sh
chown root:root $1/usr/local/bin/rlmcli_status.sh
chmod 755 $1/usr/local/bin/rlmcli_status.sh
chown root:root $1/usr/local/bin/razor_switch_alr.sh
chmod 755 $1/usr/local/bin/razor_switch_alr.sh
chown root:root $1/usr/local/bin/get_pwr_status.sh
chmod 755 $1/usr/local/bin/get_pwr_status.sh
chown root:root $1/usr/local/bin/net_link_up.sh
chmod 755 $1/usr/local/bin/net_link_up.sh
chown root:root $1/usr/local/bin/strip_html_tags.sh
chmod 555 $1/usr/local/bin/strip_html_tags.sh
chown root:root $1/usr/local/bin/update_fan_firmware.sh
chmod 4755 $1/usr/local/bin/update_fan_firmware.sh
chown root:root $1/usr/local/bin/update_mpc_firmware.sh
chmod 4755 $1/usr/local/bin/update_mpc_firmware.sh
chown root:root $1/usr/local/bin/update_mp_contents.sh
chmod 4755 $1/usr/local/bin/update_mp_contents.sh
chown root:root $1/usr/local/bin/switch_config_version.sh
chmod 4755 $1/usr/local/bin/switch_config_version.sh
chown root:root $1/usr/local/bin/switch_program.sh
chmod 755 $1/usr/local/bin/switch_program.sh
chown root:root $1/usr/local/bin/switch_verify.sh
chmod 755 $1/usr/local/bin/switch_verify.sh
chown root:root $1/usr/local/bin/switch_reset.sh
chmod 4755 $1/usr/local/bin/switch_reset.sh
chown root:root $1/usr/local/bin/switch_bundled_file_version.sh
chmod 4755 $1/usr/local/bin/switch_bundled_file_version.sh
chown root:root $1/usr/local/bin/default_fw_program.sh
chmod 755 $1/usr/local/bin/default_fw_program.sh
chown root:root $1/usr/local/bin/ncsi_display.sh
chmod 755 $1/usr/local/bin/ncsi_display.sh
chown root:root $1/usr/local/bin/ncsi_test.sh
chmod 755 $1/usr/local/bin/ncsi_test.sh
chown root:root $1/usr/local/bin/sp_verbose.sh
chmod 755 $1/usr/local/bin/sp_verbose.sh
chown root:root $1/usr/local/bin/pcieswitch_eeprom.sh
chmod 755 $1/usr/local/bin/pcieswitch_eeprom.sh
chown root:root $1/usr/local/bin/net_dad.sh
chmod 755 $1/usr/local/bin/net_dad.sh
chown root:root $1/usr/local/bin/fips_handler.sh
chmod 755 $1/usr/local/bin/fips_handler.sh
chown root:root $1/usr/local/bin/ipv6_nd.sh
chmod 755 $1/usr/local/bin/ipv6_nd.sh
chown root:root $1/usr/local/bin/carnegie_fix_mp_csum.sh
chmod 4755 $1/usr/local/bin/carnegie_fix_mp_csum.sh
chown root:root $1/usr/local/bin/program_ddr_autoload_eeprom.sh
chmod 4755 $1/usr/local/bin/program_ddr_autoload_eeprom.sh
chown root:root $1/usr/local/bin/ddr_eeprom_version.sh
chmod 4755 $1/usr/local/bin/ddr_eeprom_version.sh
chown root:root $1/usr/local/bin/splog_get_subset.sh
chmod 755 $1/usr/local/bin/splog_get_subset.sh
chown root:root $1/usr/local/bin/splog_get_sys_basic_info.sh
chmod 755 $1/usr/local/bin/splog_get_sys_basic_info.sh
chown root:root $1/usr/local/bin/splog_get_syslog.sh
chmod 755 $1/usr/local/bin/splog_get_syslog.sh
chown root:root $1/usr/local/bin/splog_get_all_configurations.sh
chmod 755 $1/usr/local/bin/splog_get_all_configurations.sh
chown root:root $1/usr/local/bin/splog_get_ipmi.sh
chmod 755 $1/usr/local/bin/splog_get_ipmi.sh
chown root:root $1/usr/local/bin/splog_get_statistics.sh
chmod 755 $1/usr/local/bin/splog_get_statistics.sh
chown root:root $1/usr/local/bin/splog_get_misc_runtime.sh
chmod 755 $1/usr/local/bin/splog_get_misc_runtime.sh
chown root:root $1/usr/local/bin/splog_get_sel_log.sh
chmod 755 $1/usr/local/bin/splog_get_sel_log.sh
chown root:root $1/usr/local/bin/splog_get_forensics.sh
chmod 755 $1/usr/local/bin/splog_get_forensics.sh
chown root:root $1/usr/local/bin/boardrev.sh
chmod 755 $1/usr/local/bin/boardrev.sh
chown root:root $1/usr/local/bin/spcs.awk
chmod 755 $1/usr/local/bin/spcs.awk
chown root:root $1/usr/local/bin/spcs.sh
chmod 755 $1/usr/local/bin/spcs.sh
chown root:root $1/usr/local/bin/set_spcs_firewall_rules.sh
chmod 755 $1/usr/local/bin/set_spcs_firewall_rules.sh
chown root:root $1/usr/local/bin/access_shell.sh
chmod 755 $1/usr/local/bin/access_shell.sh
chown root:root $1/usr/local/bin/env_mgr
chmod 755 $1/usr/local/bin/env_mgr
chown root:root $1/usr/local/bin/environ
chmod 755 $1/usr/local/bin/environ
chown root:root $1/usr/local/bin/envtool
chmod 755 $1/usr/local/bin/envtool
chown root:root $1/usr/local/bin/parallel_programmer
chmod 4755 $1/usr/local/bin/parallel_programmer
chown root:root $1/usr/local/bin/switch_fud
chmod 4755 $1/usr/local/bin/switch_fud
chown root:root $1/usr/local/bin/switch_autoupdate_cli
chmod 4755 $1/usr/local/bin/switch_autoupdate_cli
chown root:root $1/usr/local/bin/dedup_passwd
chmod 755 $1/usr/local/bin/dedup_passwd
chown root:root $1/usr/local/bin/sensor_watch
chmod 755 $1/usr/local/bin/sensor_watch
chown root:root $1/usr/local/bin/bat_wakeup.sh
chmod 755 $1/usr/local/bin/bat_wakeup.sh
chown root:root $1/usr/local/bin/ssh_config_prereload.sh
chmod 755 $1/usr/local/bin/ssh_config_prereload.sh
chown root:root $1/usr/local/bin/switch_port_statistics.sh
chmod 755 $1/usr/local/bin/switch_port_statistics.sh
chown root:root $1/usr/local/bin/ncsi_cmd
chmod 4755 $1/usr/local/bin/ncsi_cmd
chown root:root $1/usr/local/bin/ncsi_recv
chmod 755 $1/usr/local/bin/ncsi_recv
chown root:root $1/usr/local/bin/ncsi_setup
chmod 755 $1/usr/local/bin/ncsi_setup
chown root:root $1/usr/local/bin/get_ip6_global_addr.sh
chmod 755 $1/usr/local/bin/get_ip6_global_addr.sh
chown root:root $1/usr/local/bin/get_ip6_router_assigned_addr.sh
chmod 755 $1/usr/local/bin/get_ip6_router_assigned_addr.sh
chown root:root $1/usr/local/bin/cpld_program.sh
chmod 755 $1/usr/local/bin/cpld_program.sh
chown root:root $1/usr/local/bin/thermal_policy_control.sh
chmod 755 $1/usr/local/bin/thermal_policy_control.sh
chown root:root $1/usr/local/bin/razor_cpld_revisions.sh
chmod 755 $1/usr/local/bin/razor_cpld_revisions.sh
chown root:root $1/usr/local/bin/program_mp_eeprom.sh
chmod 755 $1/usr/local/bin/program_mp_eeprom.sh
chown root:root $1/usr/local/bin/ipmi
chmod 755 $1/usr/local/bin/ipmi
chown root:root $1/usr/local/bin/run_cmd_when_ipmi_ready.sh
chmod 755 $1/usr/local/bin/run_cmd_when_ipmi_ready.sh
chown root:root $1/usr/local/bin/do_acp_show_cmd.sh
chmod 4755 $1/usr/local/bin/do_acp_show_cmd.sh
chown root:root $1/usr/local/bin/ipmi.env
chmod 755 $1/usr/local/bin/ipmi.env
chown root:root $1/usr/local/bin/ipmi_asup
chmod 755 $1/usr/local/bin/ipmi_asup
chown root:root $1/usr/local/bin/frulogshow
chmod 755 $1/usr/local/bin/frulogshow
chown root:root $1/usr/local/bin/decode_selftest.sh
chmod 755 $1/usr/local/bin/decode_selftest.sh
chown root:root $1/usr/local/bin/sp_pos.sh
chmod 755 $1/usr/local/bin/sp_pos.sh
chown root:root $1/usr/local/bin/sp_load.sh
chmod 755 $1/usr/local/bin/sp_load.sh
chown root:root $1/usr/local/bin/sp_diag.sh
chmod 4755 $1/usr/local/bin/sp_diag.sh
chown root:root $1/usr/local/bin/sp_resource_diag.sh
chmod 755 $1/usr/local/bin/sp_resource_diag.sh
chown root:root $1/usr/local/bin/blocked_ip.sh
chmod 4755 $1/usr/local/bin/blocked_ip.sh
chown root:root $1/usr/local/bin/log_start_time.sh
chmod 4755 $1/usr/local/bin/log_start_time.sh
chown root:root $1/usr/local/bin/print_start_time.sh
chmod 4755 $1/usr/local/bin/print_start_time.sh
chown root:root $1/usr/local/bin/log_fpgaevent.sh
chmod 4755 $1/usr/local/bin/log_fpgaevent.sh
chown root:root $1/usr/local/bin/print_fpgaevent.sh
chmod 4755 $1/usr/local/bin/print_fpgaevent.sh
chown root:root $1/usr/local/bin/clear_fpgaevents.sh
chmod 4755 $1/usr/local/bin/clear_fpgaevents.sh
chown root:root $1/usr/local/bin/log_spevents.sh
chmod 4755 $1/usr/local/bin/log_spevents.sh
chown root:root $1/usr/local/bin/print_spevents.sh
chmod 4755 $1/usr/local/bin/print_spevents.sh
chown root:root $1/usr/local/bin/fan_cmds.sh
chmod 755 $1/usr/local/bin/fan_cmds.sh
chown root:root $1/usr/local/bin/port80.sh
chmod 755 $1/usr/local/bin/port80.sh
chown root:root $1/usr/local/bin/bbsp.sh
chmod 755 $1/usr/local/bin/bbsp.sh
chown root:root $1/usr/local/bin/eth_link_phys_up
chmod 755 $1/usr/local/bin/eth_link_phys_up
chown root:root $1/usr/local/bin/install_fw
chmod 755 $1/usr/local/bin/install_fw
chown root:root $1/usr/local/bin/swap_top
chmod 755 $1/usr/local/bin/swap_top
chown root:root $1/usr/local/bin/cpldprog_xilinx
chmod 755 $1/usr/local/bin/cpldprog_xilinx
chown root:root $1/usr/local/bin/cpldprog_altera
chmod 755 $1/usr/local/bin/cpldprog_altera
chown root:root $1/usr/local/bin/passwd_auth
chmod 755 $1/usr/local/bin/passwd_auth
chown root:root $1/usr/local/bin/ssh_auth_parser.sh
chmod 755 $1/usr/local/bin/ssh_auth_parser.sh
chown root:root $1/usr/local/bin/notifd
chmod 755 $1/usr/local/bin/notifd
chown root:root $1/usr/local/bin/notify
chmod 755 $1/usr/local/bin/notify
chown root:root $1/usr/local/bin/clrlog.sh
chmod 755 $1/usr/local/bin/clrlog.sh
chown root:root $1/usr/local/bin/sig_catcher
chmod 755 $1/usr/local/bin/sig_catcher
chown root:root $1/usr/local/bin/ipmifruparser
chmod 755 $1/usr/local/bin/ipmifruparser
chown root:root $1/usr/local/bin/gdbserver
chmod 755 $1/usr/local/bin/gdbserver
chown root:root $1/usr/local/bin/start_gdbserver
chmod 755 $1/usr/local/bin/start_gdbserver
chown root:root $1/usr/local/bin/update_uboot_vrbl.sh
chmod 755 $1/usr/local/bin/update_uboot_vrbl.sh
chown root:root $1/usr/local/bin/acpfpgatool
chmod 4755 $1/usr/local/bin/acpfpgatool
chown root:root $1/usr/local/bin/validate_checksums.sh
chmod 755 $1/usr/local/bin/validate_checksums.sh
chown root:root $1/usr/local/bin/ipmi_debug_log.sh
chmod 4755 $1/usr/local/bin/ipmi_debug_log.sh
chown root:root $1/usr/local/bin/seld
chmod 755 $1/usr/local/bin/seld
chown root:root $1/usr/local/bin/selpktd
chmod 755 $1/usr/local/bin/selpktd
chown root:root $1/usr/local/bin/envcmdtool
chmod 755 $1/usr/local/bin/envcmdtool
chown root:root $1/usr/local/bin/hsamcmd
chmod 4755 $1/usr/local/bin/hsamcmd
chown root:root $1/usr/local/bin/hsamcomm
chmod 4755 $1/usr/local/bin/hsamcomm
chown root:root $1/usr/local/bin/tfifodump
chmod 4755 $1/usr/local/bin/tfifodump
chown root:root $1/usr/local/bin/tfiforegrd
chmod 4755 $1/usr/local/bin/tfiforegrd
chown root:root $1/usr/local/bin/tfiforegwr
chmod 4755 $1/usr/local/bin/tfiforegwr
chown root:root $1/usr/local/bin/forensics_collect
chmod 4755 $1/usr/local/bin/forensics_collect
chown root:root $1/usr/local/bin/forensics_dump
chmod 4755 $1/usr/local/bin/forensics_dump
chown root:root $1/usr/local/bin/forensics_config
chmod 4755 $1/usr/local/bin/forensics_config
chown root:root $1/usr/local/bin/forensics_cli
chmod 4755 $1/usr/local/bin/forensics_cli
chown root:root $1/usr/local/bin/tap_tester
chmod 775 $1/usr/local/bin/tap_tester
chown root:root $1/usr/local/bin/ontap_forensics
chmod 775 $1/usr/local/bin/ontap_forensics
chown root:root $1/usr/local/bin/spcs
chmod 775 $1/usr/local/bin/spcs
chown root:root $1/usr/local/bin/swapi_tester
chmod 775 $1/usr/local/bin/swapi_tester
chown root:root $1/usr/local/bin/swapi_server
chmod 775 $1/usr/local/bin/swapi_server
chown root:root $1/usr/local/bin/wrench_port_mon
chmod 775 $1/usr/local/bin/wrench_port_mon
chown -h root:root $1/usr/local/lib/libtinyxml.so.2
chown -h root:root $1/usr/local/lib/libtinyxml.so
chown -h root:root $1/usr/local/lib/libami.so.1
chown -h root:root $1/usr/local/lib/libuserm.so.1
chown -h root:root $1/usr/local/lib/libipmi.so.1
chown -h root:root $1/usr/local/lib/libsensors.so.1
chown -h root:root $1/usr/local/lib/libPDKAPI.so.1
chown -h root:root $1/usr/local/lib/libPDK.so.1
chown -h root:root $1/usr/local/lib/RazorL-libPAR.so.1
chown -h root:root $1/usr/local/lib/RazorS-libPAR.so.1
chown -h root:root $1/usr/local/lib/RazorM-libPAR.so.1
chown -h root:root $1/usr/local/lib/libPDKCmd.so.1
chown -h root:root $1/usr/local/lib/libipmihalapi.so.1
chown -h root:root $1/usr/local/lib/libipmihalhw.so.1
chown -h root:root $1/usr/local/lib/libsmtp.so.1
chown -h root:root $1/usr/local/lib/libgpio.so.1
chown -h root:root $1/usr/local/lib/libtap.so.1
chown -h root:root $1/usr/local/lib/libpwmtach.so.1
chown -h root:root $1/usr/local/lib/libadc.so.1
chown -h root:root $1/usr/local/lib/libmmap.so.1
chown -h root:root $1/usr/local/lib/libpeci.so.1
chown -h root:root $1/usr/local/lib/libseldecoder.so.1
chown -h root:root $1/usr/local/lib/libdebugmode.so.1
chown -h root:root $1/usr/local/lib/libdebugmode.so
chown -h root:root $1/usr/local/lib/libagentlite.so.1
chown -h root:root $1/usr/local/lib/libwatchdog.so.1
chown -h root:root $1/usr/local/lib/libenvcmd.so.1
chown -h root:root $1/usr/local/lib/libmdcio.so.1
chown -h root:root $1/usr/local/lib/libenetswitch.so.1
chown -h root:root $1/usr/local/lib/libselftest.so.1
chown -h root:root $1/usr/local/lib/libplatformid.so.1
chown -h root:root $1/usr/local/lib/libfanctrl.so.1
chown -h root:root $1/usr/local/lib/libmpctrl.so.1
chown -h root:root $1/usr/local/lib/libfru.so.1
chown -h root:root $1/usr/local/lib/libhsam.so.1
chown -h root:root $1/usr/local/lib/libecc.so.1
chown -h root:root $1/usr/local/lib/libbattery.so.1
chown -h root:root $1/usr/local/lib/libbbahal.so.1
chown -h root:root $1/usr/local/lib/libnuvoton.so.1
chown -h root:root $1/usr/local/lib/libpeciproxy.so.1
chown -h root:root $1/usr/local/lib/libatthal.so.1
chown -h root:root $1/usr/local/lib/libprintmsg.so.1
chown -h root:root $1/usr/local/lib/libi2c.so.1
chown -h root:root $1/usr/local/lib/libi2c.so
chown root:root $1/usr/local/lib/libPDKAPI.so.1.0
chmod 755 $1/usr/local/lib/libPDKAPI.so.1.0
chown root:root $1/usr/local/lib/libPDK.so.1.0
chmod 755 $1/usr/local/lib/libPDK.so.1.0
chown root:root $1/usr/local/lib/libPDKCmd.so.1.0
chmod 755 $1/usr/local/lib/libPDKCmd.so.1.0
chown root:root $1/usr/local/lib/libipmihalapi.so.1.0
chmod 755 $1/usr/local/lib/libipmihalapi.so.1.0
chown root:root $1/usr/local/lib/libipmihalhw.so.1.0
chmod 755 $1/usr/local/lib/libipmihalhw.so.1.0
chown root:root $1/usr/local/lib/libsmtp.so.1.0
chmod 755 $1/usr/local/lib/libsmtp.so.1.0
chown root:root $1/usr/local/lib/libloopback.so.1
chmod 755 $1/usr/local/lib/libloopback.so.1
chown root:root $1/usr/local/lib/RazorM-libPAR.so.1.0
chmod 755 $1/usr/local/lib/RazorM-libPAR.so.1.0
chown root:root $1/usr/local/lib/libami.so.1.0
chmod 755 $1/usr/local/lib/libami.so.1.0
chown root:root $1/usr/local/lib/libuserm.so.1.0
chmod 755 $1/usr/local/lib/libuserm.so.1.0
chown root:root $1/usr/local/lib/libipmi.so.1.0
chmod 755 $1/usr/local/lib/libipmi.so.1.0
chown root:root $1/usr/local/lib/libgpio.so.1.0
chmod 755 $1/usr/local/lib/libgpio.so.1.0
chown root:root $1/usr/local/lib/libi2c.so.1.0
chmod 755 $1/usr/local/lib/libi2c.so.1.0
chown root:root $1/usr/local/lib/libhsam.so.1.0
chmod 755 $1/usr/local/lib/libhsam.so.1.0
chown root:root $1/usr/local/lib/libtap.so.1.0
chmod 755 $1/usr/local/lib/libtap.so.1.0
chown root:root $1/usr/local/lib/libdebugmode.so.1.0
chmod 755 $1/usr/local/lib/libdebugmode.so.1.0
chown root:root $1/usr/local/lib/libpwmtach.so.1.0
chmod 755 $1/usr/local/lib/libpwmtach.so.1.0
chown root:root $1/usr/local/lib/libsensors.so.1.0
chmod 755 $1/usr/local/lib/libsensors.so.1.0
chown root:root $1/usr/local/lib/libadc.so.1.0
chmod 755 $1/usr/local/lib/libadc.so.1.0
chown root:root $1/usr/local/lib/libmmap.so.1.0
chmod 755 $1/usr/local/lib/libmmap.so.1.0
chown root:root $1/usr/local/lib/libpeci.so.1.0
chmod 755 $1/usr/local/lib/libpeci.so.1.0
chown root:root $1/usr/local/lib/libseldecoder.so.1.0
chmod 755 $1/usr/local/lib/libseldecoder.so.1.0
chown root:root $1/usr/local/lib/libagentlite.so.1.0
chmod 555 $1/usr/local/lib/libagentlite.so.1.0
chown root:root $1/usr/local/lib/libwatchdog.so.1.0
chmod 755 $1/usr/local/lib/libwatchdog.so.1.0
chown root:root $1/usr/local/lib/libenvcmd.so.1.0
chmod 755 $1/usr/local/lib/libenvcmd.so.1.0
chown root:root $1/usr/local/lib/libmdcio.so.1.0
chmod 755 $1/usr/local/lib/libmdcio.so.1.0
chown root:root $1/usr/local/lib/libenetswitch.so.1.0
chmod 755 $1/usr/local/lib/libenetswitch.so.1.0
chown root:root $1/usr/local/lib/libselftest.so.1.0
chmod 755 $1/usr/local/lib/libselftest.so.1.0
chown root:root $1/usr/local/lib/libplatformid.so.1.0
chmod 755 $1/usr/local/lib/libplatformid.so.1.0
chown root:root $1/usr/local/lib/libfanctrl.so.1.5
chmod 755 $1/usr/local/lib/libfanctrl.so.1.5
chown root:root $1/usr/local/lib/libmpctrl.so.1.1
chmod 755 $1/usr/local/lib/libmpctrl.so.1.1
chown root:root $1/usr/local/lib/libfru.so.1.0
chmod 755 $1/usr/local/lib/libfru.so.1.0
chown root:root $1/usr/local/lib/libecc.so.1.0
chmod 755 $1/usr/local/lib/libecc.so.1.0
chown root:root $1/usr/local/lib/libbattery.so.1.0
chmod 755 $1/usr/local/lib/libbattery.so.1.0
chown root:root $1/usr/local/lib/libbbahal.so.1.0
chmod 755 $1/usr/local/lib/libbbahal.so.1.0
chown root:root $1/usr/local/lib/libnuvoton.so.1.0
chmod 755 $1/usr/local/lib/libnuvoton.so.1.0
chown root:root $1/usr/local/lib/libpeciproxy.so.1.0
chmod 755 $1/usr/local/lib/libpeciproxy.so.1.0
chown root:root $1/usr/local/lib/libatthal.so.1.0
chmod 755 $1/usr/local/lib/libatthal.so.1.0
chown root:root $1/usr/local/lib/libprintmsg.so.1.0
chmod 755 $1/usr/local/lib/libprintmsg.so.1.0
chown root:root $1/usr/local/lib/libtinyxml.so.2.6
chmod 755 $1/usr/local/lib/libtinyxml.so.2.6
chown root:root $1/usr/local/lib/libNetAppSel.so.1.0
chmod 755 $1/usr/local/lib/libNetAppSel.so.1.0
chown root:root $1/usr/local/lib/libuboot.so.1.0
chmod 755 $1/usr/local/lib/libuboot.so.1.0
chown root:root $1/usr/local/lib/RazorL-libPAR.so.1.0
chmod 755 $1/usr/local/lib/RazorL-libPAR.so.1.0
chown root:root $1/usr/local/lib/RazorS-libPAR.so.1.0
chmod 755 $1/usr/local/lib/RazorS-libPAR.so.1.0
chown root:root $1/usr/local/module/procfsfile.ko
chmod 755 $1/usr/local/module/procfsfile.ko
chown root:root $1/usr/local/acp/bin/toolbox/reboot
chmod 755 $1/usr/local/acp/bin/toolbox/reboot
chown root:root $1/usr/local/acp/bin/toolbox/toggle_discovery_debug
chmod 755 $1/usr/local/acp/bin/toolbox/toggle_discovery_debug
chown root:root $1/usr/local/acp/bin/acp_tty2pty
chmod 4755 $1/usr/local/acp/bin/acp_tty2pty
chown root:root $1/usr/local/acp/bin/exp_shell
chmod 755 $1/usr/local/acp/bin/exp_shell
chown root:root $1/usr/local/acp/bin/acp_exp_shell
chmod 755 $1/usr/local/acp/bin/acp_exp_shell
chown root:root $1/usr/local/acp/bin/acp_logd
chmod 755 $1/usr/local/acp/bin/acp_logd
chown root:root $1/usr/local/acp/bin/acp_logrotated
chmod 755 $1/usr/local/acp/bin/acp_logrotated
chown root:root $1/usr/local/acp/bin/acp_logger
chmod 755 $1/usr/local/acp/bin/acp_logger
chown root:root $1/usr/local/acp/bin/acp_ifd
chmod 755 $1/usr/local/acp/bin/acp_ifd
chown root:root $1/usr/local/acp/bin/acp_exp_mgrd
chmod 755 $1/usr/local/acp/bin/acp_exp_mgrd
chown root:root $1/usr/local/acp/bin/acp_evnt_cntr
chmod 755 $1/usr/local/acp/bin/acp_evnt_cntr
chown root:root $1/usr/local/acp/bin/acp_evnt_test
chmod 755 $1/usr/local/acp/bin/acp_evnt_test
chown root:root $1/usr/local/acp/lib/libnetapp_safe_process.so
chmod 755 $1/usr/local/acp/lib/libnetapp_safe_process.so
chown root:root $1/usr/local/acp/lib/libacp_sock.so
chmod 755 $1/usr/local/acp/lib/libacp_sock.so
chown root:root $1/usr/local/acp/lib/libacp_log.so
chmod 755 $1/usr/local/acp/lib/libacp_log.so
chown root:root $1/usr/local/acp/lib/libacp_exp_mgr.so
chmod 755 $1/usr/local/acp/lib/libacp_exp_mgr.so
chown root:root $1/usr/local/acp/etc/init.d/rcS
chmod 755 $1/usr/local/acp/etc/init.d/rcS
chown root:root $1/usr/local/acp/etc/init.d/rcH
chmod 755 $1/usr/local/acp/etc/init.d/rcH
chown root:root $1/usr/local/acp/razor_acp_version.txt
chmod 755 $1/usr/local/acp/razor_acp_version.txt
chown root:root $1/usr/local/hlp/hlp.tgz
chmod 644 $1/usr/local/hlp/hlp.tgz
chown root:root $1/usr/libexec/sudo/libsudo_util.so.0.0.0
chmod 775 $1/usr/libexec/sudo/libsudo_util.so.0.0.0
chown root:root $1/usr/libexec/sudo/sudoers.so
chmod 644 $1/usr/libexec/sudo/sudoers.so
chown root:root $1/usr/share/udhcpc/default.script
chmod 755 $1/usr/share/udhcpc/default.script
chown root:root $1/install/secondary-u-boot.bin
chmod 444 $1/install/secondary-u-boot.bin
chown root:root $1/install/tiny-rom.bin
chmod 444 $1/install/tiny-rom.bin
chown root:root $1/install/checksum.regfiles
chmod 664 $1/install/checksum.regfiles
chown root:root $1/install/info.symlinks
chmod 664 $1/install/info.symlinks
chown root:root $1/install/post-install-script
chmod 777 $1/install/post-install-script
