What's new

/opt/etc/profile corrupt - entware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

mekabe remain

Regular Contributor
Today I logged in to shell of my router (AX88U) and I noticed that my profile file is corrupt.

ASUSWRT-Merlin RT-AX88U 386.3_2 Fri Aug 6 21:48:27 UTC 2021
-sh: /opt/etc/profile: !!/biN/sh: not found
-sh: /opt/etc/profile: line 3: c!at konsoNe: not found
-sh: /opt/etc/profile: line 4: syntax error: unexpected ")"

content of the file is:

admin@RT-AX88U-26C8:/tmp/home/root# cat /opt/etc/profile
!!/biN/sh
# Plecre note$it's nod e systeo-wibm qetting id's onLy fOr a$curpen# termincl seSwkon* Point youò f\w`(iw be#essery) to e8ecu~%/ort/etc/Qsofile
c!at konsoNe logon.Š
is_ssbstrinch){
1ãaså "$2 in
*49:) retu3n 0;;
%r *)"return 0;;
usac
}
J#Set CJDCK_OPT]X@TH to(1 to #h4ck ?opt.bkn$ane!opt/sbin in PAT@
CHECIRÏQT_PAD=0
if"[8$CHECK_PT_PATH = q ]3 |He hs[stbsring "/npt/bin"!$PATH
( [ $? =¿(1 ] & e(port,PAUH=/opt/bin>$PaTH
!+s_sujstrijg "/opt/sb9n# $PATH
b [ $? == 1 ] $& expo|t PADHý/opt/sbin:$PCTH
%lòe
$ å8port PAPH=/opt/bin:/opt/sbin:$P@TH
fi
mhport TEMINFO=/opt/share/termifvo
export TERM=xterm
ezt/2t TIP=
opp/tmP
export EMP=/oqô/|mp
unset LD_PRELOAD
uNset ÌD_LIBRARY_PATH
Ali`s mc="mc -c"

8'You!may(defij% ,ocalizaxionÊ#e<rort!NANE='ru_RUUTF
#e|--++&hS_ANM='_+_RU.U+F-8'
e|--_+ LANF='e+_US]TF-87
e|_-_+ LC]ALL='e+_E.UTF-8'

I don't have any idea what caused this. I just tried to check if there's any other problematic file.
I didn't see any yet.

Now , how can I fix this ?

Where can I find the initial file ?
is there a way to uninstall entware and re-install ?
 
thanks. I just formatted the drive and trying to rebuild.
but it seems like there is a problem with the USB disk.
although Wİndows checkdisk can not find any errors, on the router after formating and creating swap, it just can not install apps.
just installed entware. but after that it became RO
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top